프로젝트

일반

사용자정보

Actions

GetRewards » 이력 » 개정판 1

개정판 1/10 | 다음 »
이름없음, 2021/06/03 07:05


getRewards

  • user, admin, b2b의 모든 리워드 목록을 조회합니다 

RewardListRequest(param)

field
type
description
note
did String 사용자 did  
command String 요청에대한 Command 종류  
index String    
value String    
subValue String    

RewardListResponse

field
type
description
note
command String    
rewards [Reward] Resward 리스트  

Reward

field
type
description
note
amount Int!    
nounce Int!    
owner String    
spent Boolean!    
tokenId String    

RequestExample

 getRewards(param :{
        command :"list" 
        did : "WbnSxRD2Ys1N7aY2CVDAGN" 
        index : "OwnerAndStatus" 
        value :"WbnSxRD2Ys1N7aY2CVDAGN" 
        subValue : "false" 
    }) {
        rewards {
            amount
            nonce
            owner
            spent
            tokenId
        }
    }
}

ResponseExample

 {
     "data": {
         "getRewards": {
             "rewards": [{
                 "owner": "WbnSxRD2Ys1N7aY2CVDAGN",
                 "amount": 100,
                 "tokenId": "Gjk8x4CWuN9XcZeW3ivXNERL9qJb48YCQGY8uucJLeot1HW9tUjWStHXrPb8iwttEpsEaDbXZt5gXCK71kwcPK2dvasLKH7LqgRLzZ4pMC7nEj9XsLej",
                 "spent": false,
                 "nonce": 0
             }]
         }
     }
 }

이름없음이(가) 약 4년 전에 변경 · 1 revisions

클립보드 이미지 추가 (최대 크기: 97.7 MB)