GetMyDSettlement » 이력 » 개정판 4
개정판 3 (이름없음, 2021/06/04 05:36) → 개정판 4/19 (이름없음, 2021/06/04 07:43)
h1. %{color: #000000;}getMyDSettlement%
h2. %{color: #000000;}요청 필드%
<pre><code class="c">
getMyDSettlement(
did: String
): MyDSettlementResponse
</code></pre>
*%{color: #000000;}SettlementRequest%*
| %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% |
| %{color: #000000;}command% | %{color: #000000;}String% | %{color: #000000;}응답 Command 유형 (값: "tnkSettlement")% |
| %{color: #000000;}did% | %{color: #000000;}String% | %{color: #000000;}snplab의 did% |
| %{color: #000000;}end% | %{color: #000000;}Long!% | |
| %{color: #000000;}start% | %{color: #000000;}Long!% | |
*%{color: #000000;}MyDSettlementResponse%*
| %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% |
| %{color: #000000;}command% | %{color: #000000;}String% | %{color: #000000;}요청Command 유형(값: "rewardDebt")% #000000;}응답 Command 유형% |
| %{color: #000000;}result% | %{color: #000000;}[MyDSettlementResult]% #000000;}["MyDSettlementResult":#]% | |
*%{color: #000000;}MyDSettlementResult%*
| %{color: #000000;}field% | %{color: #000000;}type% | %{color: #000000;}description% |
| %{color: #000000;}countMonth% | %{color: #000000;}Int% | %{color: #000000;}월% |
| %{color: #000000;}countYear% | %{color: #000000;}Int% | %{color: #000000;}년% |
| %{color: #000000;}didCount% | %{color: #000000;}Int% | %{color: #000000;}did개수% |
| %{color: #000000;}id% | %{color: #000000;}Int% | %{color: #000000;}번호% |
| %{color: #000000;}lastUpdate% | %{color: #000000;}String% | %{color: #000000;}최근 업테이트 날짜% |
| %{color: #000000;}rewardAmount% | %{color: #000000;}Int% | %{color: #000000;}reward 양% |
*%{color: #000000;}요청 예시%*
<pre>
query{
getMyDSettlement(did:"NfoPEFaG1adkCpijR85L66"){
command
result{
lastUpdate
countYear
id
rewardAmount
didCount
countMonth
}
}
}
</pre>
*%{color: #000000;}응답 예시%*
<pre>
{
"data": {
"getMyDSettlement":
"getTnkSettlement": {
"command": "rewardDebt",
"tnkSettlement",
"result": [
{
"lastUpdate": "2021-01-31T14:50Z",
"countYear": 2021,
"id": 7,
"rewardAmount": 1840,
"didCount": 806,
"countMonth": 1
"reward": 1000,
"income": 500,
"seqId": "abcde",
"timestamp": 12345
},
{
"lastUpdate": "2021-02-28T14:50Z",
"countYear": 2021,
"id": 8,
"rewardAmount": 0,
"didCount": 806,
"countMonth": 2
"reward": 1000,
"income": 1000,
"seqId": "A2CPI2SYK2SEFS",
"timestamp": 1612536898501
},
{
"lastUpdate": "2021-03-31T14:50Z",
"countYear": 2021,
"id": 85,
"rewardAmount": 3978735,
"didCount": 806,
"countMonth": 3
"reward": 99,
"income": 498,
"seqId": "456024733",
"timestamp": 1616655942901
},
{
"lastUpdate": "2021-04-30T14:50Z",
"countYear": 2021,
"id": 260,
"rewardAmount": 1504427013,
"didCount": 806,
"countMonth": 4
"reward": 99,
"income": 498,
"seqId": "833980294",
"timestamp": 1616723555879
},
{
"lastUpdate": "2021-05-31T14:50Z",
"countYear": 2021,
"id": 385,
"rewardAmount": 1509552913,
"didCount": 806,
"countMonth": 5
"reward": 55,
"income": 112,
"seqId": "54335360300",
"timestamp": 1616738812323
},
{
"lastUpdate": "2021-06-01T14:50Z",
"countYear": 2021,
"id": 389,
"rewardAmount": 1509554113,
"didCount": 806,
"countMonth": 6
"reward": 56,
"income": 114,
"seqId": "54335501700",
"timestamp": 1616739598350
},
{
"reward": 55,
"income": 112,
"seqId": "54335533700",
"timestamp": 1616739781805
},
{
"reward": 61,
"income": 123,
"seqId": "54335540400",
"timestamp": 1616739840867
},
{
"reward": 51,
"income": 104,
"seqId": "54335504600",
"timestamp": 1616740716371
},
{
"reward": 50,
"income": 101,
"seqId": "54335537800",
"timestamp": 1616740818279
},
{
"reward": 54,
"income": 110,
"seqId": "54386912900",
"timestamp": 1617004694897
},
{
"reward": 50,
"income": 101,
"seqId": "54386992000",
"timestamp": 1617004925268
}
]
}
}
}
</pre>