IThirdwebWallet.GetBalance

This method allows getting either the native token balance or the balance of a specific token for a wallet.

Usage

// Get native balance
BigInteger nativeBalance = await wallet.GetBalance(chainId);
// Get ERC20 token balance
BigInteger tokenBalance = await wallet.GetBalance(chainId, erc20ContractAddress);