Actions
MintReward¶
- snplab이 b2b 기업에게 reward를 제공합니다.
mintReward(
param: RewardMintRequest
): RewardResponse
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 참고
이름없음이(가) 일년 이상 전에 변경 · 1 revisions