Quick Start

Here is a basic example of how to get started and mint a simple ERC721 NFT

1. Preparing the plugin

1.1 Add the Conf & Wallet plugin element somewhere on the page. 1.2 Choose how you want to connect a wallet to it in the Connection Type dropdown. 1.3 Let's say you are using Web3Auth, add the Web3Auth plugin element on the same page 1.4 Add the NFTs element on the same page

circle-check

2. Wallet connection

Before doing any further action, you must make sure that a wallet is connected first. Depending on the plugin you are using, each has its own instruction, but usually, it is straightforward. In our example, it is Web3Auth. 2.1 Add a button element on the page 2.2 On Button click workflow, add Login action from Web3Auth element. 2.3 Use various plugin states&events to make sure the wallet was connected successfully.

3. Get an ERC721 Collection contract

You can deploy one in thirdweb dashboard:

https://thirdweb.com/thirdweb.eth/TokenERC721arrow-up-right Or, you can deploy one programatically using this plugin, see NFTs for demo and documentation.

4. Mint

Add a button element on the page. On Button Click workflow, add Mint action from thirdweb NFTs element

Complete the required fields in the action, like contract address, NFT name, image, etc. The fields have additional documentation under them, open it for additional details. Some fields like Other metadata are optional, meaning that you can leave it empty.

Minted event

When the minting is successful, this event will trigger in the workflow. See Element Events in the NFTs documentation

Minted Token ID

The newly minted token ID will be in the element state Minted Token ID It will be available only after the event Minted mentioned above triggers. See Element States in the NFTs documentation

Last updated