useBalance
Usage
connect()
must be called and WalletConnect session must be initiated before account balance will be returned.
The useBalance
hook returns an accounts’ balance.
If an address is provided, the wallet will return that address’ balance if that address is in the wallet. Otherwise, it will return the currently selected account’s balance.
If the multisig flag is true, the sdk will not fetch until an address is present.
If you create or import a new account after connection, you’ll have to reconnect your dApp to the wallet.