1. Find Token Account

Easy

Given an address, use the Solana Web3.js library to get all of the token accounts for that address.

You can assume that the address has more than one token account, and that the balances of them may vary.

Return the response in JSON format, with no fields other than an array of token accounts.

Address: 9GU9ZSyhJmsz6ePXeTWyzWND8ZdthkbvLAfTwabSziYz

Example:

{
   "tokens": [
      {
         "tokenAccount": "5HTSi4BNCShBSG4zEu2rjTnQMPHfVuKctTwRyfZXNmBZ",
         "mint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
         "amount": 0,
         "decimals": 6
      }
    ]
},

Solutions

cuttingblubber

831 ms

3.2

Pending

Loading...

Run your code to see the output.