balanceOf

Calls the "balanceOf" function on the contract.

Example

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

Parameters

The options for the balanceOf function.

Type

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.