getTotalMinted()
Gets the number of tokens a user has ever minted for the selected wallet. This differs from total balance as this also includes tokens that have been transferred away.
Response
number
Example Implementation
// ERC721
const erc721Count = await contract.getTotalMinted();
// ERC1155
const tokenId = 0;
const erc1155Count = await contract.getTotalMinted(tokenId);
tokenId is required when the contract type is ERC1155.
Possible Errors
All errors are prefixed with HM (getTotalMinted) -
Token id required
- When tokenId is not provided for an ERC1155 contract- Errors in the
connect()
function
Feedback
Something not quite right, unclear or can't find what you are looking for? Please let us know at support.moonpay.com and we will get back to you as soon as we can.
Updated 9 months ago