프로젝트

일반

사용자정보

GetTnkSettlement » 이력 » 버전 7

이름없음, 2021/06/09 08:08

1 6 이름없음
h1. GetTnkSettlement
2 2 이름없음
3
h2. *요청 필드*
4
5
<pre><code class="c">
6
getTnkSettlement(
7
settlementRequest: SettlementRequest
8
): SettlementResponse
9
</code></pre>
10
11
*SettlementRequest*
12
13 5 이름없음
| field | type | description | note |
14
| command | String | %{color: #000000;}요청 Command 유형 (값: "tnkSettlement")% | %{color: #000000;} % |
15
| did | String | snplab의 did |   |
16
| start | Long! | -1(전체) 또는 조회 시작 기준(초단위) |   |
17
| end | Long! | %{color: #000000;}조회 종료 기준(초단위)% | %{color: #ff0000;}start 값이 -1일 경우 end 값에 상관없이 전체 조회% |
18 2 이름없음
19
*SettlementResponse*
20
21
| field | type | description |
22 7 이름없음
| command | String | 요청 Command 유형 <notextile></notextile>%{color: #000000;}(값: "tnkSettlement")% |
23 2 이름없음
| result | [SettlementResult] |   |
24
25
*SettlementResult*
26
27
| field | type | description |
28
| income | Long | 수입 |
29
| reward | Long | 리워드 |
30
| seqId | String | 순서 |
31 3 이름없음
| timestamp | Long | 시간 |
32 2 이름없음
33
*요청 예시*
34
35
<pre>
36
query{
37
getTnkSettlement(settlementRequest:{
38
did:"NfoPEFaG1adkCpijR85L66" 
39
command: "tnkSettlement" 
40
start:-1
41
end: -1
42
}){
43
command
44
result{
45
reward
46
income
47
seqId
48
timestamp
49
}
50
}
51
}
52
</pre>
53
54
*응답 예시*
55 1 이름없음
56
<pre>
57
{
58 3 이름없음
    "data": {
59
        "getTnkSettlement": {
60
            "command": "tnkSettlement",
61
            "result": [
62
                {
63
                    "reward": 1000,
64
                    "income": 500,
65
                    "seqId": "abcde",
66
                    "timestamp": 12345
67
                },
68
                {
69
                    "reward": 1000,
70
                    "income": 1000,
71
                    "seqId": "A2CPI2SYK2SEFS",
72
                    "timestamp": 1612536898501
73
                },
74
                {
75
                    "reward": 99,
76
                    "income": 498,
77
                    "seqId": "456024733",
78
                    "timestamp": 1616655942901
79
                },
80
                {
81
                    "reward": 99,
82
                    "income": 498,
83
                    "seqId": "833980294",
84
                    "timestamp": 1616723555879
85
                },
86
                {
87
                    "reward": 55,
88
                    "income": 112,
89
                    "seqId": "54335360300",
90
                    "timestamp": 1616738812323
91
                },
92
                {
93
                    "reward": 56,
94
                    "income": 114,
95
                    "seqId": "54335501700",
96
                    "timestamp": 1616739598350
97
                },
98
                {
99
                    "reward": 55,
100
                    "income": 112,
101
                    "seqId": "54335533700",
102
                    "timestamp": 1616739781805
103
                },
104
                {
105
                    "reward": 61,
106
                    "income": 123,
107
                    "seqId": "54335540400",
108
                    "timestamp": 1616739840867
109
                },
110
                {
111
                    "reward": 51,
112
                    "income": 104,
113
                    "seqId": "54335504600",
114
                    "timestamp": 1616740716371
115
                },
116
                {
117
                    "reward": 50,
118
                    "income": 101,
119
                    "seqId": "54335537800",
120
                    "timestamp": 1616740818279
121
                },
122
                {
123
                    "reward": 54,
124
                    "income": 110,
125
                    "seqId": "54386912900",
126
                    "timestamp": 1617004694897
127
                },
128
                {
129
                    "reward": 50,
130
                    "income": 101,
131
                    "seqId": "54386992000",
132
                    "timestamp": 1617004925268
133
                }
134
            ]
135
        }
136 2 이름없음
    }
137
}</pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)