MintReward » 이력 » 버전 2
이름없음, 2021/06/03 07:18
1 | 1 | 이름없음 | h2. MintReward |
---|---|---|---|
2 | |||
3 | * snplab이 b2b 기업에게 reward를 제공합니다 |
||
4 | 2 | 이름없음 | |
5 | *RewardMintRequest* |
||
6 | |||
7 | |_. field |
||
8 | |_. type |
||
9 | |_. description |
||
10 | |_. note |
||
11 | | |
||
12 | | did | String | | | |
||
13 | | command | String | | | |
||
14 | | duration | String | | | |
||
15 | | dueTo | String | | | |
||
16 | | recipient | String | | | |
||
17 | | amount | Int! | | | |
||
18 | |||
19 | *RewardResponse* |
||
20 | |||
21 | |_. field |
||
22 | |_. type |
||
23 | |_. description |
||
24 | |_. note |
||
25 | | |
||
26 | | amount | Int! | | | |
||
27 | | command | String | | | |
||
28 | | nonce | Int! | | | |
||
29 | | owner | String | | | |
||
30 | | spent | String | | | |
||
31 | | tokenId | String | | | |
||
32 | |||
33 | --- |
||
34 | |||
35 | *Request Example* |
||
36 | |||
37 | <pre><code class="java"> |
||
38 | mintReward(param: { |
||
39 | did: "NfoPEFaG1adkCpijR85L66" |
||
40 | dueTo: "mint=grant:ReKxejmhGsKyvmEaZtTu6T" |
||
41 | recipient: "ReKxejmhGsKyvmEaZtTu6T" |
||
42 | amount: 100 |
||
43 | duration: "__INFINITE__" |
||
44 | command: "mint" |
||
45 | }) { |
||
46 | command |
||
47 | owner |
||
48 | spent |
||
49 | amount |
||
50 | nonce |
||
51 | tokenId |
||
52 | } |
||
53 | } |
||
54 | </code></pre> |
||
55 | |||
56 | *Response Example* |
||
57 | |||
58 | <pre><code class="java"> |
||
59 | { |
||
60 | "data": { |
||
61 | "mintReward": { |
||
62 | "owner": "ReKxejmhGsKyvmEaZtTu6T", |
||
63 | "amount": 100, |
||
64 | "tokenId": "Gjk8x4CWuN9XcZeW3ivXNDxsoKET48kvejohHLeuDXs6CU3y5noJF3BUh21MxLZfSDRWJjWNUhiQpzGy5QMBMzxaMXvo4YXZvumUYHbN6MoKsutUBvDK", |
||
65 | "spent": false, |
||
66 | "nonce": 0, |
||
67 | "command": "mint" |
||
68 | } |
||
69 | } |
||
70 | } |
||
71 | </code></pre> |