This project showcases how the FXPortal bridge facilitates the seamless transfer of ERC721 NFTs from the Ethereum Goerli testnet to the Polygon Mumbai testnet.
In this project, there's a Solidity smart contract integrated to mint ERC721 NFTs on the Ethereum Sepolia testnet. Following their minting, these NFTs are subsequently transported to the Polygon Mumbai testnet using the FXPortal bridge.
- Fork this repository and clone it to your local machine.
- Run
npm install
to install all dependencies. - Deploy the smart contract on the Ethereum Goerli testnet using the
deploy.js
script. - Mint five ERC721 NFTs using the
mint.js
script. - Transfer the NFTs to the Polygon Mumbai testnet using the FXPortal bridge using the
approveDeposit.js
script. - You can then check the balance of the polygon contract to verify the transfer using the
getBalance.js
script.
Include the json files of the NFTs, and upload the pictures for NFTs on the pinata cloud.
This is a Hardhat project with four scripts. To run a script, use the following command:
npx hardhat run scripts/<scriptName> --network <networkName>
This project is licensed under the MIT License.