RefundReward » 이력 » 개정판 2
개정판 1 (이름없음, 2021/06/03 07:12) → 개정판 2/10 (이름없음, 2021/06/03 07:26)
h2. RefundReward
* 리워드를 환불합니다
*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 {
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>