Deploy ERC721 Contract
This tutorial explains how to deploy an ERC721 token contract on the InfraEVM parachain.
Before you begin
Before you begin, make sure to do the following:
Deploying an ERC721 Token Contract Using Remix
Visit Remix.
remix-main Create a workspace. Choose the ERC721 token contract template.
erc721-create-workspace Confirm the created workspace.
erc721-check-code Compile the generated code.
erc721-compile Select the network to deploy as
Injected Provider - MetaMask
and connect MetaMask to Remix.erc721-change-network Before deployment, set variable values such as the owner, and deploy the contract.
erc721-set-owner-and-deploy If a confirmation window appears in MetaMask, double-check and proceed with contract deployment.
erc721-deploy-check Once deployment is complete, you can verify it in MetaMask as shown below.
erc721-deploy-complete
Minting NFTs with the Deployed ERC721 Token Contract
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'.erc721-mint Press the "transact" button, and a confirmation window for the transaction will appear.
erc721-mint-check If the transaction is executed successfully, the NFT will be minted, and you can confirm it in wallets like MetaMask under NFT token views.
erc721-metamask-nft-check
Moving on to the Next Step
Last updated