Skip to main content

sdk.erc721lazymint.totalsupply

Home > @openformat/sdk > ERC721LazyMint > totalSupply

ERC721LazyMint.totalSupply() method

Returns the total supply of tokens in the ERC721 contract totalSupply

Signature:

totalSupply(params?: ERC721TotalSupplyParams): Promise<number>;

Parameters

ParameterTypeDescription
paramsERC721TotalSupplyParams(Optional) Optional parameters for the transaction

Returns:

Promise<number>

{Promise<number>} - The total number of tokens in the contract

Exceptions

{Error} If there was an error retrieving the total supply