BatchMintMetadata

Batch-mint Metadata

The BatchMintMetadata is a contract extension for any base NFT contract. It lets the smart contract using this extension set metadata for n number of NFTs all at once. This is enabled by storing a single base URI for a batch of n NFTs, where the metadata for each NFT in a relevant batch is baseURI/tokenId.

Methods

getBaseURICount

function getBaseURICount() external view returns (uint256)

Returns the count of batches of NFTs.

Each batch of tokens has an in ID and an associated baseURI. See {batchIds}.

Returns

Name
Type
Description

_0

uint256

undefined

getBatchIdAtIndex

function getBatchIdAtIndex(uint256 _index) external view returns (uint256)

Returns the ID for the batch of tokens the given tokenId belongs to.

See {getBaseURICount}.

Parameters

Name
Type
Description

_index

uint256

ID of a token.

Returns

Name
Type
Description

_0

uint256

undefined

Last updated