balanceOf

Calls the "balanceOf" function on the contract.

Example

import { balanceOf } from "thirdweb/extensions/erc20";
const result = await balanceOf({
contract,
address: ...,
});
function balanceOf(
): Promise<bigint>;

Parameters

The options for the balanceOf function.

Type

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.