• Discover
  • Partner with us
  • Chapters
  • Blog

Learn everything about Chiliz

Introduction
Chiliz Network and Its Use Cases
What Are Test Tokens and How to Utilize Them

What Are We Going to Build
Which Technologies Will Be Used
Implementing Frontend I - Creating ENV
Implementing Frontend II - Connect Wallet
Implementing Frontend III - Getting Token Balances
Implementing Frontend IV - Getting Token Metadata
Implementing Frontend V - HTML/CSS Walkthrough
Homework I - Submit your github repository link

What Are We Going to Build
Getting Chiliz Testnet Coins
Deploying NFT Marketplace Using Thirdweb
Implementing Frontend I - Creating ENV
Implementing Frontend II - Fetching Contract Info
Implementing Frontend III - Interacting with NFT Collection
Implementing Frontend IV - Interacting with Marketplace
Implementing Frontend V - List/Delist NFT on Marketplace
Implementing Frontend VI - Buy Listing
Homework II - Submit your github repository link

Submit Your Final Project

Minting NFTs and Displaying Wallet Assets Using Thirdweb

In this video, we continue our smart contract interactions using Thirdweb, diving into NFT minting and wallet asset display. This builds upon our previous setup and adds more dynamic, user-centered functionality.

1. Introduction to Thirdweb’s Minting Tools

Thirdweb simplifies interacting with smart contracts, including minting NFTs and retrieving owned assets. Key tools we'll use:

  • useMintNFT – for minting NFTs
  • useOwnedNFTs – to fetch NFTs associated with a user’s wallet

These hooks provide an easy-to-use interface for tasks that would otherwise require complex smart contract interaction.

2. Setting Up the Minting Form

The minting form includes input fields for:

  • Name
  • Description
  • Image URL

Each field is tied to a React useState variable. When the user submits the form, we run handleSubmit.

Validation

Inside handleSubmit, we first check if any of the fields are empty. If so, we return early to avoid submitting invalid data.

3. Creating and Submitting NFT Metadata

After validation, we create the metadata object required for minting. It includes:

  • name
  • description
  • image

We also need the user's wallet address for the to field. To retrieve this, we use the useAddress hook from Thirdweb:

const address = useAddress();

We then call the mintNFT function, passing:

{
  metadata: { name, description, image },
  to: address,
}

The function handles the blockchain interaction, and the UI responds to:

  • Loading state – displays a "Minting in progress" message
  • Error state – displays a "Minting error" if something goes wrong

4. Creating a Wallet Page to Display NFTs

To let users view their owned NFTs, we build a wallet page using the useOwnedNFTs hook. This hook returns all NFTs owned by a given address.

Steps include:

  • Check if the user is connected (i.e., an address exists)
  • Display a loading message while NFTs are being fetched
  • Map over the returned NFTs and render them using a custom NFTCard component

Example handling:

if (!address) return <p>No wallet detected</p>;
if (isLoading) return <p>Loading NFT data...</p>;

ownedNFTs?.map(nft => (
  <NFTCard key={nft.metadata.id} nft={nft} />
));

This results in a responsive wallet interface that updates in real time based on the connected address.

5. Summary and Next Steps

In this video, we successfully:

  • Built a form to mint NFTs with metadata
  • Used Thirdweb hooks to handle wallet interaction
  • Created a wallet view page displaying user-owned NFTs
Previous
Next

Lesson discussion

Swap insights and ask questions about “Learn everything about Chiliz”.

Enroll to participate
Start the course to unlock the discussion. Enrolling helps us keep conversations relevant to learners.
WebsiteDiscoverPartner with UsBlogEvents
Discover
CoursesCircleRustSoliditySolanaWeb3 FundamentalsBlockchain Basics
CompanyAbout UsBrand GuidelineFAQsTerms of UsePrivacy PolicyGDPR NoticeCookies
Don't miss any update!

Disclaimer: The information, programs, and events provided on https://risein.com is strictly for upskilling and networking purposes related to the technical infrastructure of blockchain platforms. We do not provide financial or investment advice, nor do we make any representations regarding the value, profitability, or future price of any blockchain or cryptocurrency. Users are encouraged to conduct their own research and consult with licensed financial professionals before engaging in any investment activities. https://risein.com disclaims any responsibility for financial decisions made by users based on the information provided here.

© 2026 Rise In, All rights reserved