Coin Balances

API POST Fields (in addition to the Main Fields described in the Introduction)

Field Name
Coin Balances
cmd
Descriptionbalances
Required?Yes
all
DescriptionIf set to 1, the response will include all coins, even those with a 0 balance.
Required?No
Field NameDescriptionRequired?
Coin Balances
cmdbalancesYes
allIf 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.