Docs

totalSupply

Retrieves the total supply of ERC721 tokens.

Example

import { totalSupply } from "thirdweb/extensions/erc721";
const totalSupply = await totalSupply({ contract });

Parameters

Returns

A promise that resolves to the total supply as a bigint.