we will do the following steps;
Switch to Node.js 12 for Hardhat to work
nvm use 12
compile Meow-NFT smart contract
npx hardhat compile
deploy Meow-NFT smart contract to RSK testnet. See other possible networks in hardhat.config.js
npx hardhat deploy --network rsktestnet
you will see a message:
Meow NFT deployed to: 0xE360F4BFb74A1B2B1d102f40BE6c7D0f5C9d12C8
Copy this address and paste to the 'mint' task in 'hardhat.config.js'
Paste the address to the mint task!
npx hardhat mint --network rsktestnet
Metamask is a kind of web wallet which facilitates transactions using yours accounts. It can be used with RSK networks too. It has versions for several browsers, like Chrome, Firefox, Opera and Brave.
Go to metamask.io and install it.
Create an account.
Write down your 12 word seed phrase. This is used to recover your account, in case you lose your password.
The seed phrase is the most important thing in a wallet / account!
Go to networks -> Custom RPC, and enter the following values:
After configuring it, select the RSK Testnet.
You should now see an account connected to the RSK Testnet. Not to worry if you see “No NFTs yet” under the NFTs tab, there is one more step before we’ll be able to see them!
Once you’re on the RSK network, select the “NFTs” tab on the right and add the NFT smart contract address and the ERC-721 token ID of your NFT — which you should be able to find on RSK Testnet Explorer based on the transaction hash from your NFT deployed to RSK Testnet.
You may need to refresh the page to see your newly minted NFT.
Congratulations! In this article, we learnt about NFTs, IPFS, Hardhat, and we have successfully created and deployed our NFT project to the RSK Testnet.
If you would like to delve deeper, here are some resources and tools that we recommend.
Go to top