# my_balance
my_balance coin
The my_balance
method returns the current balance of the specified coin
.
# Arguments
Structure | Type | Description |
---|---|---|
coin | string | the name of the coin to retrieve the balance |
# Response
Structure | Type | Description |
---|---|---|
address | string | the address that holds the coins |
balance | string (numeric) | the number of coins in the address; does not include unspendable_balance |
unspendable_balance | string (numeric) | the coin balance that is unspendable at the moment (e.g. if the address has immature UTXOs) |
coin | string | the name of the coin |
# 📌 Examples
# Command
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"my_balance\",\"coin\":\"HELLOWORLD\"}"