프로젝트

일반

사용자정보

MintReward » 이력 » 버전 4

이름없음, 2021/06/04 01:35

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 4 이름없음
    mintReward(param: {
32
        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 2 이름없음
}
47 1 이름없음
</code></pre>
48
49
*Response Example*
50
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
            "command": "mint" 
61
        }
62 4 이름없음
    }
63
}
64
</code></pre>
65
66
<pre><code class="java">
67
mutation {
68
    mintReward(param: {
69
        did: "NfoPEFaG1adkCpijR85L66" 
70
        dueTo: "mint=grant:ReKxejmhGsKyvmEaZtTu6T" 
71
        recipient: "ReKxejmhGsKyvmEaZtTu6T" 
72
        amount: 100
73
        duration: "__INFINITE__" 
74
        command: "mint" 
75
    }) {
76
        command
77
        owner
78
        spent
79
        amount
80
        nonce
81
        tokenId
82 2 이름없음
    }
83
}
84
</code></pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)