Deploy ERC721 Contract
This tutorial explains how to deploy an ERC721 token contract on the InfraEVM parachain.
Last updated
This tutorial explains how to deploy an ERC721 token contract on the InfraEVM parachain.
Last updated
Before you begin, make sure to do the following:
Visit Remix.
Create a workspace. Choose the ERC721 token contract template.
Confirm the created workspace.
Compile the generated code.
Select the network to deploy as Injected Provider - MetaMask
and connect MetaMask to Remix.
Before deployment, set variable values such as the owner, and deploy the contract.
If a confirmation window appears in MetaMask, double-check and proceed with contract deployment.
Once deployment is complete, you can verify it in MetaMask as shown below.
This continues from the previous tutorial.
As shown below in "Deployed Contracts," you can see the safeMint
function. You can use this function to mint NFTs by filling in appropriate values for 'to' and 'tokenId'.
Press the "transact" button, and a confirmation window for the transaction will appear.
If the transaction is executed successfully, the NFT will be minted, and you can confirm it in wallets like MetaMask under NFT token views.