RefundReward » 이력 » 개정판 8
개정판 7 (이름없음, 2021/06/10 05:14) → 개정판 8/10 (이름없음, 2021/06/10 05:32)
h2. RefundReward
* 리워드를 환불합니다.
<pre><code class="java">
refundReward(
param: RewardRequest
): RewardResponse
</code></pre>
*RewardRequest (param)*
|_. field |_. type |_. description |_. note |
| did | String | | |
| command | String | 요청에 대한 Command 종류 | 값: refund |
| dueTo | String | | |
*RewardResponse*
|_. field |_. type |_. description |_. note |
| amount | Int! | | |
| command | String | | 값: refund |
| nonce | Int! | | |
| owner | String | | |
| spent | Boolean! | | |
| tokenId | String | | |
---
*Request Example*
<pre><code class="java">
mutation {
refundReward(param:{
command : "refund"
did : "ReKxejmhGsKyvmEaZtTu6T"
dueTo : "proposal=refund:orPxmv15e2oSPufT3Tm6SdSoVmgWQedrn8nPRqRUTCDsFC63pXu66nazMP2M7FFJnvFzqs5xMqySWrsGhjSrhHSC3D45w3zxZpjpvn9KFrguLq28Z"
}) {
amount
nonce
owner
spent
tokenId
}
}
</code></pre>
*Response Example*
<pre><code class="java">
{
"data": {
"refundReward": {
"owner": "ReKxejmhGsKyvmEaZtTu6T",
"amount": 100,
"tokenId": "Gjk8x4CWuN9XcZeW3ivXNERvAnZxmHGZRSMcWkq3bMCREJNYPz2pevaUZkhTHXsWBfFprji74GCJhpVUcko5B6YZ3icM1EXvbgdcppZFpVm2DWy6qEuG",
"spent": false,
"nonce": 0
}
}
}
</code></pre>
---
*필드 관련하여 자세한 내용은 아래 URL 참고*
* "UNO.Cranberry Benefit ChainCode":https://snplab.synology.me/confluence/display/CBU/Benefit+Chaincode