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
.
Account currency
Account not found
{- "amount_units": [
- {
- "code": "tBTC",
- "magnitude": 8
}
], - "fees_units": [
- {
- "code": "tBTC",
- "magnitude": 8
}
]
}