getBalance
, which will return a promise containing a WalletBalance
object.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.