Course lesson
Mint an NFT from a React dApp
Time to set up our dApp to actually mint an NFT when the buy button is clicked.
- Duration
- 4 min
- Access
- Included
- Transcript
- Available
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