This program consists of a simple Smart contract and corresponding scripts, for minting Non-Fungible Tokens (NFTs) in batch. An extended version of ERC721 standard contract is being used here, namely ERC721A, a brainchild of the Azuki Team. Using this project, one can batchmint NFTs, reducing transaction costs on Ethereum, and can tranfer those NFTs to the Polygon network using a FxERC721RootTunnel.
- Place your wallet address and private key into a
.env
file as shown in.env.sample
. - Download or copy ABI from FxERC721RootTunnel Contract on Goerli and place it in the
assets
directory asfxRootContractABI.json
.
npm install
-
While the scripts are divided into separate commands, we can still run
npm start
to run first 4 commands (viz.: compile, deploy, mint and transfer) merged into one. -
To compile:
npm run compile
-
To deploy:
npm run deploy
-
To mint:
npm run mint
-
To transfer:
npm run transfer
-
To check balance:
npm run balance
- Deployment, minting and transfer are being done on the Goerli testnet.
- After transfer, we need to wait for around half an hour for the transactions to show up in the Polygon network.
- When the transactions are available on the Polygon network, we can copy the contract address from there and place it in
contractAddress
variable inside4_checkbalance.js
script, before running it.