Retrieves the balance of a token or native currency for a given wallet.
import { getWalletBalance } from "thirdweb/wallets";const balance = await getWalletBalance({ address, client, chain, tokenAddress,});
function getWalletBalance( options: GetWalletBalanceOptions,): Promise<GetBalanceResult>;
The options for retrieving the token balance.
let options: { address: string; chain: Chain; client: ThirdwebClient; tokenAddress?: string;};
let returnType: { chainId: number; decimals: number; displayValue: string; name: string; symbol: string; tokenAddress: string; value: bigint;};
A promise that resolves to the token balance result.