Coin Balances
API POST Fields (in addition to the Main Fields described in the Introduction)
Field Name | Description | Required? |
---|
Coin Balances |
---|
cmd | balances | Yes |
all | If set to 1, the response will include all coins, even those with a 0 balance. | No |
API Response
A successful call to the 'balances' command will give you a result similar to this (JSON):
{
"error": "ok",
"result": {
"BTC": {
"balance": 10000000,
"balancef": 0.10000000,
}
}
}
Each coin will have the following fields:
- balance = The coin balance as an integer in Satoshis.
- balancef = The coin balance as a floating point number.