đ getBalance
You can use the getBalance
method to retrieve your user's Bitcoin balance, i.e. the amount of BTC that their connected wallet's Bitcoin payment address owns.
Your app must have first connected to the wallet and obtained account read permissions. No query parameters are required for the method:
The getBalance
method will not trigger any operation or prompt your user to sign any transaction. It will return an object representing the connected wallet's payment address BTC holdings:
balance | Description |
---|---|
| a string representing the connected wallet's confirmed BTC balance, i.e. the amount of confirmed BTC which the payment address holds, in satoshis |
| a string representing the connected wallet's unconfirmed BTC balance, i.e. the amount of unconfirmed BTC which the payment address will send/receive as a result of pending mempool transactions, in satoshis âšī¸Note that this amount can be negative if the net result of pending mempool transaction decreases the address balance. |
| a string representing the sum of |
Last updated