Choosing the right NFT contract

Before a file can be minted into an NFT, you must deploy and verify a corresponding NFT smart contract on Chiliz Chain. This is a crucial step to ensure transparency and enable interaction with your contract on-chain.

Which smart contract to use?

There are many smart contracts in the blockchain world, and it might not be obvious which one is suitable for NFT minting.

Which smart contract you need depends on what kind of NFT project you have in mind:

There are others smart contracts (known as contract extensions or variants) for different usages (such as ERC-2981arrow-up-right for Royalties, ERC-4906arrow-up-right for Metadata update event, ERC-721 Drop for lazy-minting, etc.), but for now, knowing about ERC-721/1155 is enough.

circle-exclamation

The most secure and common way to obtain a NFT-minting contract is by using the one from OpenZeppelin, for instance their ERC-721 contractarrow-up-right. This saves you from reinventing the wheel and helps prevent common security vulnerabilities.

circle-check

Deploying and Verifying your NFT Smart Contract

You can deploy your smart contract to Chiliz Chain using reputable platforms, such as Remix IDEarrow-up-right or thirdwebarrow-up-right, or directly using Hardhatarrow-up-right.

Once you have deployed it, you must verify the contract on an block explorer, so that developer tools and platforms can read its ABI (Application Binary Interface) and interact with it.

Follow these guides to deploy then verify your NFT contract:

Deploy and verify a contractchevron-right
circle-exclamation

Again, pay attention to use the correct network details for Chiliz Chain and Spicy Testnet:

Connect to Mainnet and Testnetchevron-right

Last updated

Was this helpful?