GetRewards » 이력 » 개정판 7
개정판 6 (이름없음, 2021/06/10 05:00) → 개정판 7/10 (이름없음, 2021/06/10 05:26)
h2(#wiki-id-LdpServerStatisticsResolver-getStatisticsList). *GetRewards*
* user, admin, b2b의 모든 리워드 목록을 조회합니다.
h2. 요청 필드
<pre><code class="java">
getRewards(
param: RewardListRequest
): RewardListResponse
</code></pre>
*RewardListRequest(param)*
|_. field |_. type |_. description |_. note |
| did | String | 사용자 did | |
| command | String | 요청에대한 Command 종류 | 값: list |
| index | String | | |
| value | String | | |
| subValue | String | | |
p(wiki-class-auto-cursor-target). *RewardListResponse*
|_. field |_. type |_. description |_. note |
| command | String | | 값: list |
| 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