ClaimReward » 이력 » 개정판 2
개정판 1 (이름없음, 2021/06/03 07:12) → 개정판 2/9 (이름없음, 2021/06/03 07:32)
h2. ClaimReward
* 리워드를 요청합니다
*RewardRequest(param)*
|_. field |_. type |_. description |_. note |
| did | String | | |
| command | String | 요청에 대한 Command 종류 | |
| dueTo | String | | |
*RewardResponse*
|_. field |_. type |_. description |_. note |
| amount | Int! | | |
| command | String | | |
| nonce | Int! | | |
| owner | String | | |
| spent | Boolean! | | |
| tokenId | String | | |
---
*Request Example*
<pre><code class="java">
Querymutation {
claimReward(param: {
did: "KyXsH8RypaGBXuYbmUczZ7"
dueTo: "ticket=claim:orPxmv15e2oSPuvTht3fYmkdE2BWAU78DX2axDwRGVby9vSsDLkc2ojQeibK6SHdckDNrNFbhTHzdA5qA9c94kLSV6JeibENNgCvzPXboVKr4MZaS"
command: "claim"
}) {
amount
command
nonce
owner
spent
tokenId
}
}
</code></pre>
*Response Example*
<pre><code class="java">
{
"data": {
"claimReward": {
"owner": "KyXsH8RypaGBXuYbmUczZ7",
"amount": 2,
"tokenId": "Gjk8x4CWuN9XcZeW3ivXNETeFgSFCDr2V7sAtRJMJqRdJjMbugx2PgvhxTaMnryvqkr1kWEbtLg1dydf84mxXyxKt5JDQ5yJZ7Qkkvm2SwcMnNqroBHS",
"spent": false,
"nonce": 0,
"command": "claim"
}
}
}
</code></pre>