2. Token Gate

Easy

Given an account and an NFT address, check if the given wallet holds the NFT, and return the structured response showing 'true' or 'false' denoting ownership, the token account address, and the number of NFTs the account holds. Return null if there is no token account, and zero if there is no token balance.

Address: 9GU9ZSyhJmsz6ePXeTWyzWND8ZdthkbvLAfTwabSziYz

Return the response in JSON format, structured like the examples below:

Example:

{
   "account": [
      {
         "tokenAccount": "5HTSi4BNCShBSG4zEu2rjTnQMPHfVuKctTwRyfZXNmBZ",
         "owned": true,
         "amount": 0,
      }
    ]
},

Solutions

No Solutions Yet.

Complete this challenge and submit to be the first!

Pending

Loading...

Run your code to see the output.