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<GetWalletBalanceResult>;
The options for retrieving the token balance.
let options: { address: string; chain: Chain; client: ThirdwebClient; tokenAddress?: string;};
let returnType: Promise<GetWalletBalanceResult>;
A promise that resolves to the token balance result.