GetRewards » 이력 » 개정판 5
개정판 4 (이름없음, 2021/06/04 04:56) → 개정판 5/10 (이름없음, 2021/06/10 01:10)
h2(#wiki-id-LdpServerStatisticsResolver-getStatisticsList). *GetRewards* *getRewards* * user, admin, b2b의 모든 리워드 목록을 조회합니다. *RewardListRequest(param)* |_. field |_. type |_. description |_. note | | did | String | 사용자 did | | | command | String | 요청에대한 Command 종류 | | | index | String | | | | value | String | | | | subValue | String | | | p(wiki-class-auto-cursor-target). *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* <pre><code class="c"> Query { getRewards(param :{ command :"list" did : "WbnSxRD2Ys1N7aY2CVDAGN" index : "OwnerAndStatus" value :"WbnSxRD2Ys1N7aY2CVDAGN" subValue : "false" }) { rewards { amount nonce owner spent tokenId } } } } </code></pre> *ResponseExample* <pre><code class="java"> { "data": { "getRewards": { "rewards": [{ "owner": "WbnSxRD2Ys1N7aY2CVDAGN", "amount": 100, "tokenId": "Gjk8x4CWuN9XcZeW3ivXNERL9qJb48YCQGY8uucJLeot1HW9tUjWStHXrPb8iwttEpsEaDbXZt5gXCK71kwcPK2dvasLKH7LqgRLzZ4pMC7nEj9XsLej", "spent": false, "nonce": 0 }] } } } </code></pre> --- *필드 관련하여 자세한 내용은 아래 URL 참고* * "UNO.Cranberry Benefit ChainCode":https://snplab.synology.me/confluence/display/CBU/Benefit+Chaincode