Retrieve wallet balance
How to retrieve the native balance of a wallet
To fetch the balance of a wallet of a certain user you need to call the function getBalance
, which will return a promise containing a WalletBalance
object.
🧙 If you only want to retrieve the balance of a user's wallet then getBalance
is the perfect function, but if you also need to fetch his wallets or get some profile information, and maybe even need to authenticate the user, then it is recommended to retrieve the user account.
Function
Example
Returns
Function Reference
The function reference describes the different functions that are available in the Widget. For each function you can find the signature, it's parameters, and possible options documented.
pagegetBalancepagegetBalanceByAddressLast updated