Deploy NFT on the Rootstock Testnet

To deploy an NFT on Rootstock, we will do the following steps;

Note: You can also deploy an NFT on Rootstock using NFTs2Me. Want to launch and grow your NFT project on Rootstock? Visit the Artoshi NFT Marketplace.

  • 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 Rootstock 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!

  • mint your NFTs from CIDs specified in the mint task of project.config.js

npx hardhat mint --network rsktestnet

View NFT using Metamask


Metamask is a kind of web wallet which facilitates transactions using yours accounts. It can be used with Rootstock networks too. It has versions for several browsers, like Chrome, Firefox, Opera and Brave.

Go to 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 or an account!

Connect MetaMask to Rootstock testnet

You can either use the tool to download/install Metamask, and add Rootstock custom network or follow the steps listed below.

Go to networks -> Custom RPC, and enter the following values:

  • Network Name RSK Testnet
  • New RPC URL
  • ChainID (optional) 31
  • Symbol (optional) tRBTC
  • Block Explorer URL (optional)

After configuring it, select the Rootstock Testnet.

You should now see an account connected to the Rootstock 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!

Add NFT to Metamask

Once you’re on the Rootstock 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 Rootstock Testnet Explorer based on the transaction hash from your NFT deployed to Rootstock 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 Rootstock Testnet.

If you would like to delve deeper, here are some resources and tools that we recommend.


Receive updates

Get the latest updates from the Rootstock ecosystem