I am trying to develop a token-gated website, users will need to connect their wallet and proof their ownership of a NFT collection.
Usually, this is fairly straightforward for a NFT collection with a contract address. We can simply do:
const contract = await new ethers.Contract(contractAddress, abi, provider);
const balance = await contract.balanceOf(walletAddress);
However, in my case, the NFT collection is minted on Opensea, and the address is 0x495f947276749Ce646f68AC8c248420045cb7b5e
. There will be whole lot of the other collection under this address. So, I am not sure it is possible to prove a user's ownership of a NFT collection minted on Opensea. I have read through Opensea API and also Opensea SDK, but found nothing.