Creating your first NFT smart contract

Step-by-step tutorial walking you through everything needed to create an NFT contract that you can trade on OpenSea

This tutorial will walk you through the many different components of building, deploying, and selling a non-fungible contract on Ethereum's testnettestnet - a parallel instance of a blockchain network, typically offered as a testing and experimentation environment for developers without risking real funds. that can be traded on OpenSea.

The tutorial assumes you have some familiarity with coding, but are brand new to the world of Web3 and smart contracts. We will be using the following dependencies in the tutorial:

These tools are only some of the current community favorites so we will be using them to encourage best practices. There are many great alternatives to these tools that can also be used, and we are always open to feedback on better practices and improvements.

As we dive into new concepts in this tutorial, we will review definitions that might be new to you coming into Web3 and offer guidance on how to provide the best user experience possible for users of your smart contract. By the end of the tutorial, you will have a deployed NFT contract on the Rinkeby network, a beautifully set up collection on OpenSea, and some NFTs within that collection ready to sell on OpenSea.

The completed code can be viewed over on our Github repository

What’s Next

Lets dive right in and create a development environment