my_balance
my_balance coin
The my_balance
method returns the current balance of the specified coin
.
Structure | Type | Description |
---|---|---|
coin | string | the name of the coin to retrieve the balance |
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 |
POST
my_balance#!/bin/bash
curl --url "http://127.0.0.1:7783" --data '{
"userpass": "RPC_UserP@SSW0RD",
"method": "my_balance",
"coin": "HELLOWORLD"
}'