Course lesson

Update an NFT’s Image and Other Metadata

We want to update the “Checked In” property on our NFT tickets once a user checks in with our dApp.

Duration
5 min
Access
Included
Transcript
Retained from source evidence

We want to update the “Checked In” property on our NFT tickets once a user checks in with our dApp.

To accomplish this we create checkIn method in our smart contract. To write checkIn we can just copy and paste a large portion of our mint method and remove the call to safeMint, set the id to the user’s token, set Checked In to true, and replace the placeholder image with our IPFS image.