SubaccountHistory
Get subaccount's deposits and withdrawals history
Path parameters
subaccountIdstring · min: 66 · max: 66RequiredExample:
SubaccountId of the trader we want to get the history from
0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002
Pattern: ^0x[0-9a-fA-F]{64}$
Query parameters
denomstringOptionalExample:
Filter history by denom
peggy0xdAC17F958D2ee523a2206206994597C13D831ec7
skipintegerOptionalDefault:
Skip will skip the first n item from the result
0
Example: 0
limitinteger · max: 100OptionalDefault:
Limit is used to specify the maximum number of items to be returned
100
Example: 100
endTimeinteger · int64OptionalExample:
Upper bound of account transfer history's executedAt
1656864048234
Responses
200
OK response.
application/json
400
Bad Request response.
application/vnd.goa.error
404
Not Found response.
application/vnd.goa.error
500
Internal Server Error response.
application/vnd.goa.error
get
GET /api/exchange/account/v1/subaccountHistory/{subaccountId} HTTP/1.1
Host: inj-indexer.nownodes.io
Accept: */*
{
"paging": {
"countBySubaccount": 3144167030999342600,
"from": 1916499695,
"next": [
"Ea rerum.",
"Aut dolorem cum voluptas quae.",
"Voluptas repellendus qui ipsam est."
],
"to": 391437627,
"total": 7364854934794692000
},
"transfers": [
{
"amount": {
"amount": "10000000000000000000",
"denom": "inj"
},
"dstAccountAddress": "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r",
"dstSubaccountID": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"executedAt": 1544614248000,
"srcAccountAddress": "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r",
"srcSubaccountID": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"transferType": "deposit"
},
{
"amount": {
"amount": "10000000000000000000",
"denom": "inj"
},
"dstAccountAddress": "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r",
"dstSubaccountID": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"executedAt": 1544614248000,
"srcAccountAddress": "inj1cml96vmptgw99syqrrz8az79xer2pcgp0a885r",
"srcSubaccountID": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"transferType": "deposit"
}
]
}