SubaccountHistory

subaccountHistory InjectiveAccountsRPC

get

Get subaccount's deposits and withdrawals history

Path parameters
subaccountIdstring · min: 66 · max: 66Required

SubaccountId of the trader we want to get the history from

Example: 0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002Pattern: ^0x[0-9a-fA-F]{64}$
Query parameters
denomstringOptional

Filter history by denom

Example: peggy0xdAC17F958D2ee523a2206206994597C13D831ec7
skipintegerOptional

Skip will skip the first n item from the result

Default: 0Example: 0
limitinteger · max: 100Optional

Limit is used to specify the maximum number of items to be returned

Default: 100Example: 100
endTimeinteger · int64Optional

Upper bound of account transfer history's executedAt

Example: 1656864048234
Responses
200
OK response.
application/json
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"
    }
  ]
}