totalSupply

Calls the "totalSupply" function on the contract.

Example

import { totalSupply } from "thirdweb/extensions/erc721";
const result = await totalSupply({
contract,
});
function totalSupply(
): Promise<bigint>;

Parameters

The options for the totalSupply function.

Type

let options: { contract: ThirdwebContract<abi> } & T;

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.