CREATE YOUR FIRST GRC-721 TOKEN
Last updated
Last updated
A GRC-721 token on Gather Network is similar to an ERC-721 token on Ethereum.
This is a guide for creating your first GRC-721 (NFT) contract on Solidity with Open Zeppelin on Gather Testnet.
You can use the same guide to create a GRC-721 (NFT) contract on Gather Mainnet with mainnet configurations.
MetaMask or any web3 wallet configured with Gather testnet.
Testnet GTHs.
For this guide, we will be using remix as IDE and MetaMask as our wallet.
Open Remix online compiler. https://remix.ethereum.org/
In contracts create a new file token.sol
and add the following code there.
You can get the code from here as well - https://github.com/GatherNetwork/GRC-721-Token.git
Compile token.sol
Switch to Gather Testnet Network in your MetaMask.
In environments of Remix, select injected web3 and connect an account with enough testnet GTHs.
Deploy your contract.
This will open your MetaMask extension and ask you to confirm the pending transaction. Click the Confirm button on the MetaMask popup.
You have successfully created and deployed a GRC-721 token contract on the Gather test network.
You can now mint a GRC-721 token for any address on Gather testnet.