Fetch Mint Info From a Smart Contract

InstructorRyan Harris

Share this video with your friends

Send Tweet

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.

~ 2 years ago

There is no onClick event for the "Buy Ticket" button but in the video it performs an action - why is this?

Lucas Minter
~ 2 years ago

I'm not too sure either but he does create the onClick event for the Buy button in the next lesson.