Verify NFT ownership

Hello, so with the growth of web3 applications we also need to more forward, and I wonder if there is a way to verify NFTs ownership with bubble, for example user would come to our VIP page and connect his metamask wallet so we would be able to verify whether he has our NFT or not, and only allow access based on that.
This is all very new and information is pretty hard to find, but I believe some bubblers have already figured it out!
Thank you

2 Likes

Hey tomajx, I’m currently struggling with the same thing! My current solution works, but is pretty brute force and slow:

  1. Installed EZ Code Web3 & Metamask and List Shifter plugins
  2. Create a table of Contracts and Contract ABIs. In Contracts, I put the contract addresses + token IDs that are valid.
  3. In Contract ABIs, I put contract address and their ABI from etherscan.
  4. Do a List Shifter loop that goes through each item in Contracts, gets the ABI, and reads the smart contract using “ownerOf”.
  5. Writes the owner address result to Contracts in an owner field.

Now this works… but because I haven’t found a good way to time the completion of smart contract read with List Shifter moving on to the next item. I have to add a lengthy pause after each read.

Ideally, and EZ Code has mentioned they’d add it to their list, Smart Contract - Read could simply take a list, and do one call instead of several. I also tried this with their Opensea API plugin and that was a bust, as you can only batch pull 50 NFTs assets at a time and their plug-in doesn’t let you filter by contract address.

If anyone has a better solution, please share! This approach is so clunky right now, and only works because my Contracts table is rather small.

Hi guys! I have the dame question, so I sales ro EZ team and they told me this:

You can use the plugin action Read Contract
Any NFT has a function to check if a wallet has it.

For example, all NFTs has a function named ownerOf, in the parameters, for ERC720 type, you just indicate the wallet address you want to check.
For ERC1155, there are 2 parameters, wallet address and token ID.

Use our demo pages with Read Contract examples, find them in the plugin description

I have not trĂ­es yet, If anyone of you tries and it works, let me know

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.