Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
How to make a website check whether the user has a specific NFT?

I would like to make an "exclusive" website accessible only to owners of certain NFTs. So it would require some sort of authorization where the website checks the ownership of such NFT. How it should be implemented following the web3 principles?


This question was imported from Telegram Chat: https://t.me/tondev/116561

  
  
Posted one year ago
Votes Newest

Answers


  1. Have the user connect to the website with the TON SDK.
  2. Check the address for an NFT. Let them know they need to buy an NFT if they don't own the right NFT, and let them know they need to sign a message otherwise. https://answers.ton.org/question/1546098552432758784/how-do-you-get-data-about-nfts-of-an-address-using-an-api
  3. Have your backend generate a JWT token based off ownership of an NFT. This will involve having the user sign something with their wallet to prove that they own the wallet they claim they do in the frontend. Then you can use this authorization method like you would with any typical website. You can adapt something similar:
    https://blog.cryptostars.is/non-fungible-tokens-nft-for-user-auth-in-web-2-apps-5a6a758afe5
  
  
Posted one year ago
Edited one year ago
Jeremy
404 × 5 Administrator
1K Views
1 Answer
one year ago
one year ago
Tags