Actions
ClaimReward » 이력 » 개정판 8
« 뒤로 |
개정판 8/9
(비교(diff))
| 다음 »
이름없음, 2021/06/10 06:16
ClaimReward¶
- 리워드를 요청합니다
claimReward(
param: RewardRequest
): RewardResponse
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
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"
}
}
}
필드 관련하여 자세한 내용은 아래 URL 참고
이름없음이(가) 약 4년 전에 변경 · 8 revisions