Actions
MintReward » 이력 » 개정판 7
« 뒤로 |
개정판 7/11
(비교(diff))
| 다음 »
이름없음, 2021/06/04 04:56
MintReward¶
- snplab이 b2b 기업에게 reward를 제공합니다.
RewardMintRequest (param)
field | type | description | note |
---|---|---|---|
did | String | ||
command | String | ||
duration | String | ||
dueTo | String | ||
recipient | String | ||
amount | Int! |
RewardResponse
field | type | description | note |
---|---|---|---|
amount | Int! | ||
command | String | ||
nonce | Int! | ||
owner | String | ||
spent | String | ||
tokenId | String |
Request Example
Querymutation {
mintReward(param: {
did: "NfoPEFaG1adkCpijR85L66"
dueTo: "mint=grant:ReKxejmhGsKyvmEaZtTu6T"
recipient: "ReKxejmhGsKyvmEaZtTu6T"
amount: 100
duration: "__INFINITE__"
command: "mint"
}) {
command
owner
spent
amount
nonce
tokenId
}
}
Response Example
{
"data": {
"mintReward": {
"owner": "ReKxejmhGsKyvmEaZtTu6T",
"amount": 100,
"tokenId": "Gjk8x4CWuN9XcZeW3ivXNDxsoKET48kvejohHLeuDXs6CU3y5noJF3BUh21MxLZfSDRWJjWNUhiQpzGy5QMBMzxaMXvo4YXZvumUYHbN6MoKsutUBvDK",
"spent": false,
"nonce": 0,
"command": "mint"
}
}
}
mutation {
mintReward(param: {
did: "NfoPEFaG1adkCpijR85L66"
dueTo: "mint=grant:ReKxejmhGsKyvmEaZtTu6T"
recipient: "ReKxejmhGsKyvmEaZtTu6T"
amount: 100
duration: "__INFINITE__"
command: "mint"
}) {
command
owner
spent
amount
nonce
tokenId
}
}
필드 관련하여 자세한 내용은 아래 URL 참고
이름없음이(가) 약 4년 전에 변경 · 7 revisions