Quick start developing with TIP-4

This page helps you to instantly start developing with TIP-4 and deploy your NFT collection here and now. Read next guides, if you want to go deeper.

Source Code

You can inspect the source code of TIP-4 token implementation by link.

How to deploy your own NFT collection

You need to have an installed Smart Contract Development Environment. If you haven't already, follow this tutorial.

Initialize your NFT project

npx locklift init --path my-first-nft
> [INFO]  New Locklift project initialized in .
> [INFO]  Installing required dependencies...
> [INFO]  
> added 181 packages, and audited 182 packages in 13s

> 23 packages are looking for funding
>   run `npm fund` for details

> found 0 vulnerabilities

> [INFO]  LockLift initialized in my-first-nft happy hacking!

Install dependencies

TIP-4 is accessible from npm. Let's install it

Implement base contracts

Next, you should implement two interfaces in two contracts. Firstly, let's deal with Nft contract. The only thing we should do for basics is implement TIP4_1Nft

Now we should go for Collection contract. We should implement TIP4_1Collection and write some method for NFT deploying.

Deploy action

Let's move to deploy action. We need two scripts for this quick start: one for Collection deploying, and second for calling mintNft function, that we have implemented.

Finally, we can deploy a new token to local network. For this, make sure local node is running, if not follow the next command

and run our scripts

Now you know how to deploy your own NFT collection and mint NFT with TIP-4 standard!

Last updated