Skip to content

The Token Improvement

In the previous part we were developing our simple token based on a preset from OpenZeppelin. On top of it we developed a lockable component, but we did this with the ERC721PresetMinterPauserAutoId.

In this tutorial you will learn one specific component, which is the secondary royalties. To do that, we will start from scratch with a simple ERC721 Token from OpenZeppelin. It's not a direct continuation of the previous part, it's an ERC721 Token with minimal requirements from scratch.


To get started, you need:

Node and Truffle installed (best globally).

npm install -g truffle

Empty Truffle Project with OpenZeppelin ERC721 Token

Open a new empty directory in your favorite IDE (here it is Visual Studio Code). And then open a terminal and type in:

truffle init

npm init -y 

npm install @openzeppelin/contracts

Great, now we can get started with the actual token!

Last update: August 19, 2021