MintReward » 이력 » 개정판 2
개정판 1 (이름없음, 2021/06/03 07:11) → 개정판 2/11 (이름없음, 2021/06/03 07:18)
h2. MintReward
* snplab이 b2b 기업에게 reward를 제공합니다
*RewardMintRequest*
|_. 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*
<pre><code class="java">
mintReward(param: {
did: "NfoPEFaG1adkCpijR85L66"
dueTo: "mint=grant:ReKxejmhGsKyvmEaZtTu6T"
recipient: "ReKxejmhGsKyvmEaZtTu6T"
amount: 100
duration: "__INFINITE__"
command: "mint"
}) {
command
owner
spent
amount
nonce
tokenId
}
}
</code></pre>
*Response Example*
<pre><code class="java">
{
"data": {
"mintReward": {
"owner": "ReKxejmhGsKyvmEaZtTu6T",
"amount": 100,
"tokenId": "Gjk8x4CWuN9XcZeW3ivXNDxsoKET48kvejohHLeuDXs6CU3y5noJF3BUh21MxLZfSDRWJjWNUhiQpzGy5QMBMzxaMXvo4YXZvumUYHbN6MoKsutUBvDK",
"spent": false,
"nonce": 0,
"command": "mint"
}
}
}
</code></pre>