Docs

getBalance

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

Example

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

Parameters

Returns

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