Balances

Get an account's balances by ID

get

This method returns the account's balances that matches the entered ID.

Authorizations
Path parameters
account_idintegerRequired

The account's ID

Responses
200
Account object
application/json
Responseone of
or
or
get
GET /accounts/{account_id}/balances HTTP/1.1
Host: 
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
{
  "available": "750",
  "pending": "250",
  "total": "1000"
}

Get an account's balances history by ID

get

This method returns the account's balances history that matches the entered ID.

Authorizations
Path parameters
account_idintegerRequired

The account's ID

Query parameters
endstring · date-time | nullableOptional

End of the balance history time span.

Default: 2025-04-08T14:57:28.155582+00:00
startstring · date-time | nullableOptional

Start of the balance history time span.

Default: 2025-04-08T14:57:28.155554+00:00
Responses
200
Account object
application/json
get
GET /accounts/{account_id}/balances/history HTTP/1.1
Host: 
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
{
  "account_index": 1,
  "balances": [
    {
      "date": "text",
      "value": "text"
    }
  ],
  "currency": {
    "magnitude": 1,
    "name": "text",
    "network": "text",
    "token_address": "text"
  }
}

Last updated