프로젝트

일반

사용자정보

MintReward » 이력 » 버전 3

이름없음, 2021/06/03 07:23

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