ERC721Supply
View all of the NFTs from the collection by implementing the totalSupply
function on your ERC721(A) contract.
View on GitHub
This is an example smart contract demonstrating how to inherit from this extension and override the functions to add (optional) custom functionality.
The ERC721A contract comes with a totalSupply
function that returns the total number of NFTs that have been minted in the collection (including tokens that have been burned).
This means you can already view the total supply of NFTs in the collection by implementing the ERC721A
contract.
You can optionally override the functionality of this function as outlined below: