Mint an NFT from a React dApp

InstructorRyan Harris

Share this video with your friends

Send Tweet

Time to set up our dApp to actually mint an NFT when the buy button is clicked.

.mint is called on our connectedContract with an object containing a value property. The value property is the NFTs cost in gwei.

Then to polish everything up, we’ll add a loading state, and link the user to the transaction on Etherscan using useToast