Actions
ClaimReward » 이력 » 개정판 3
« 뒤로 |
개정판 3/9
(비교(diff))
| 다음 »
이름없음, 2021/06/04 01:33
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
mutation {
claimReward(param: {
did: "KyXsH8RypaGBXuYbmUczZ7"
dueTo: "ticket=claim:orPxmv15e2oSPuvTht3fYmkdE2BWAU78DX2axDwRGVby9vSsDLkc2ojQeibK6SHdckDNrNFbhTHzdA5qA9c94kLSV6JeibENNgCvzPXboVKr4MZaS"
command: "claim"
}) {
amount
command
nonce
owner
spent
tokenId
}
}
Response Example
{
"data": {
"claimReward": {
"owner": "KyXsH8RypaGBXuYbmUczZ7",
"amount": 2,
"tokenId": "Gjk8x4CWuN9XcZeW3ivXNETeFgSFCDr2V7sAtRJMJqRdJjMbugx2PgvhxTaMnryvqkr1kWEbtLg1dydf84mxXyxKt5JDQ5yJZ7Qkkvm2SwcMnNqroBHS",
"spent": false,
"nonce": 0,
"command": "claim"
}
}
}
이름없음이(가) 약 4년 전에 변경 · 3 revisions