Skip to main content

Introduction

We are going to use zilliqa-js to interact with our deployed ZRC-6 NFT contract.

You don't need any previous experience with zilliqa-js to follow along with this tutorial, but experience with Javascript, Node.js and npm will be useful. Doing the incrementing button example is recommended first.

NFT Collection interaction#

NFT Collection interaction is a walkthrough tutorial of some of the typical actions you might perform using zilliqa-js SDK to interact with deployed contract. The objective for this tutorial is:

  • Use zilliqa-js to deploy a ZRC-6 contract to the network
  • Use zilliqa-js to BatchMint tokens to addresses using a minter address
  • Use zilliqa-js to get the mutable state of our contract to determine if it's using token_uri or base_uri

Setup of project#

Similar to the IncrementingButton example, we will need the zilliqa-js dependency to interact easily with the blockchain.

tip

If you found this guide useful, please consider contributing your knowledge and scripts.