ClaimReward » 이력 » 개정판 5
개정판 4 (이름없음, 2021/06/04 02:01) → 개정판 5/9 (이름없음, 2021/06/10 05:13)
h2. ClaimReward * 리워드를 요청합니다 *RewardRequest(param)* |_. field |_. type |_. description |_. note | | did | String | | | | command | String | 요청에 대한 Command 종류 | 값: claim | | dueTo | String | | | *RewardResponse* |_. field |_. type |_. description |_. note | | amount | Int! | | | | command | String | | 값: claim | | nonce | Int! | | | | owner | String | | | | spent | Boolean! | | | | tokenId | String | | | --- *Request Example* <pre><code class="java"> mutation { 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> --- *필드 관련하여 자세한 내용은 아래 URL 참고* * "UNO.Cranberry Benefit ChainCode":https://snplab.synology.me/confluence/display/CBU/Benefit+Chaincode