getBalance

Retrieves the balance of an ERC20 token for a specific address.

Example

import { getBalance } from "thirdweb/extensions/erc20";
const balance = await getBalance({ contract, address: "0x..." });

Parameters

Returns

An object containing the balance value, display value, and symbol.