Ledger Enterprise
API Documentation V1
API Documentation V1
  • GETTING STARTED
    • Welcome
    • Getting Started
    • Authentication
    • Rate Limits
    • Pagination
  • tutorials
    • Register a new API User
    • First Steps as an API User
    • Generate Reporting API Keys
    • Manage Reporting API Keys
  • REFERENCE
    • API reference
      • Accounts
        • Addresses
        • Balances
          • History
        • Currency
        • History
        • Labels
        • Nft collections
        • Nft portfolio
        • Nfts
        • Sync
        • Tokens
        • Erc20 children accounts
      • Api users
        • Register
      • Currencies
        • Tokens
      • Digests
        • History
      • Entities
        • History
        • Users
      • Groups
        • History
      • Labels
      • Messages
        • History
      • Organization
      • Pledges
      • Requests
        • Approve
        • Challenge
          • Reject
        • Governance status
        • Reject
      • Settlements
      • Transactions
        • Estimate fees
        • Fees
        • Approve
        • History
        • Labels
        • Reject
      • Users
        • History
      • Whitelists
        • History
      • Auth
        • Token
          • Refresh
      • Compliance
        • Address risk
        • Sanctions
      • Notifications
        • Configuration
    • Specification
Powered by GitBook
On this page
  1. REFERENCE
  2. API reference
  3. Accounts

Currency

PreviousHistoryNextHistory

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
404
Account not found
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
    }
  ]
}