Currency

Get the account's currency

get

This method returns the account's currency.

The currency with "magnitude" 0 is always the default unit, this will be the unit used by GET /transactions.

From this point, you can deduce all the other units.

For example, these are the units used by bitcoin accounts:

 "amount_units": [
   {
    "code": "sat",
    "magnitude": 0
   },
   {
    "code": "bit",
    "magnitude": 2
   },
   {
    "code": "mBTC",
    "magnitude": 5
   },
   {
    "code": "BTC",
    "magnitude": 8
   }
  ]

So we know 1BTC = 100000000sat and 1mBTC = 100bit, and all transactions will be expressed in sat.

Authorizations
Path parameters
account_idintegerRequired

The account's ID

Responses
200
Account currency
application/json
get
GET /accounts/{account_id}/currency HTTP/1.1
Host: 
X-Ledger-API-Key: YOUR_API_KEY
Accept: */*
{
  "amount_units": [
    {
      "code": "tBTC",
      "magnitude": 8
    }
  ],
  "fees_units": [
    {
      "code": "tBTC",
      "magnitude": 8
    }
  ]
}