Docs

getWalletBalance

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

Example

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

Parameters

Returns

A promise that resolves to the token balance result.