Actions
GetRewards » 이력 » 개정판 8
« 뒤로 |
개정판 8/10
(비교(diff))
| 다음 »
이름없음, 2021/06/10 05:29
GetRewards¶
- user, admin, b2b의 모든 리워드 목록을 조회합니다.
getRewards(
param: RewardListRequest
): RewardListResponse
RewardListRequest(param)
field | type | description | note |
---|---|---|---|
did | String | 사용자 did | |
command | String | 요청에대한 Command 종류 | 값: list |
index | String | ||
value | String | ||
subValue | String |
RewardListResponse
field | type | description | note |
---|---|---|---|
command | String | 값: list | |
rewards | [Reward] | Resward 리스트 |
Reward
field | type | description | note |
---|---|---|---|
amount | Int! | ||
nounce | Int! | ||
owner | String | ||
spent | Boolean! | ||
tokenId | String |
RequestExample
Query {
getRewards(param :{
command :"list"
did : "WbnSxRD2Ys1N7aY2CVDAGN"
index : "OwnerAndStatus"
value :"WbnSxRD2Ys1N7aY2CVDAGN"
subValue : "false"
}) {
rewards {
amount
nonce
owner
spent
tokenId
}
}
}
}
ResponseExample
{
"data": {
"getRewards": {
"rewards": [{
"owner": "WbnSxRD2Ys1N7aY2CVDAGN",
"amount": 100,
"tokenId": "Gjk8x4CWuN9XcZeW3ivXNERL9qJb48YCQGY8uucJLeot1HW9tUjWStHXrPb8iwttEpsEaDbXZt5gXCK71kwcPK2dvasLKH7LqgRLzZ4pMC7nEj9XsLej",
"spent": false,
"nonce": 0
}]
}
}
}
필드 관련하여 자세한 내용은 아래 URL 참고
이름없음이(가) 약 4년 전에 변경 · 8 revisions