Get the account's currency

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.

Security(Ledger_API_Key and Ledger_API_User) or Ledger_API_Key and Ledger_API_User and Ledger_Store_Auth_Token) or Ledger_API_User or Ledger_API_User and Ledger_Store_Auth_Token)
Request
path Parameters
account_id
required
integer

The account's ID

Responses
200

Account currency

404

Account not found

get/accounts/{account_id}/currency
Response samples
application/json
{
  • "amount_units": [
    ],
  • "fees_units": [
    ]
}
Copyright © Ledger Enterprise Platform 2023. All right reserved.