Historical balances

Get historical ticket balances

get

Returns a list of ticket balances at the end of the specified block. Note, this endpoint is quite heavy, therefore at least one of the filters (account, ticket.id, ticket.ticketer) must be specified.

Path parameters
levelinteger · int32Required

Level of the block at the end of which historical balances must be calculated

Query parameters
idone of | nullableOptional

Filter by internal TzKT id. Click on the parameter to expand more details.

ticket.idone of | nullableOptional

Filter by internal TzKT id. Click on the parameter to expand more details.

ticket.ticketerone of | nullableOptional

Filter by ticketer address.
Click on the parameter to expand more details.

accountone of | nullableOptional

Filter by account address.
Click on the parameter to expand more details.

balanceone of | nullableOptional

Filter by balance.
Click on the parameter to expand more details.

sortone of | nullableOptional

Sorts items (asc or desc) by the specified field. You can see what fields can be used for sorting in the response description, below.
Click on the parameter to expand more details.

offsetone of | nullableOptional

Specifies which or how many items should be skipped.
Click on the parameter to expand more details.

limitinteger · int32 · max: 10000Optional

Maximum number of items to return.

selectone of | nullableOptional

Specify a comma-separated list of fields to include into response or leave it undefined to get default set of fields. This parameter accepts values of the following format: {field}{path?}{as alias?}, so you can do deep selection (for example, ?select=balance,token.metadata.symbol as token,...).
Note, if you select just one field, the response will be flatten into a simple array of values.
Click on the parameter to expand the details.

Responses
200Success
application/json
get
GET /v1/tickets/historical_balances/{level} HTTP/1.1
Host: xtz-index.nownodes.io
Accept: */*
200Success
[
  {
    "id": 1,
    "ticket": {
      "id": 1,
      "ticketer": {
        "alias": "text",
        "address": "text"
      },
      "rawType": {
        "type": 0
      },
      "rawContent": {
        "type": 0
      },
      "content": null,
      "typeHash": 1,
      "contentHash": 1
    },
    "account": {
      "alias": "text",
      "address": "text"
    },
    "balance": "text"
  }
]