Course lesson

Fetch Mint Info From a Smart Contract

It’s helpful for users to know how many NFTs are currently available and how many there are total.

Duration
4 min
Access
Included
Transcript
Retained from source evidence

It’s helpful for users to know how many NFTs are currently available and how many there are total.

This information can be found on the smart contract. In our dApp we can get it off our connectedContract, stored locally in React state, using the totalTicketCount and availableTicketCount methods.