How does a collectibles redemption interface work?

I want to create a simple interface for the following steps:
- User connects metamask wallet
- Platform detects NFT within the wallet
- Platform checks if wallet / NFT is in the whitelist
- If true, a file (e.g. an image) is downloaded
I’ve reached the end of the internet and I couldn’t find any tutorial / repo that has this. Inexperienced programmer here, any help will be highly appreciated
submitted by /u/Healthy_Note_5482
[link] [comments]