getWalletBalance

Retrieves the balance of a token or native currency for a given wallet.

Example

import { getWalletBalance } from "thirdweb/wallets";
const balance = await getWalletBalance({
address,
client,
chain,
tokenAddress,
});

Parameters

Returns

A promise that resolves to the token balance result.