getTokenAccountsByOwner on solana

curl https://docs-demo.solana-mainnet.quiknode.pro/
-X POST
-H “Content-Type: application/json”
–data ‘{“jsonrpc”: “2.0”,“id”: 1,“method”: “getTokenAccountsByOwner”,“params”: [“GgPpTKg78vmzgDtP1DNn72CHAYjRdKY7AV6zgszoHCSa”,{“mint”: “1YDQ35V8g68FGvcT85haHwAXv1U7XMzuc4mZeEXfrjE”},{“encoding”: “jsonParsed”}]}’.

i want to get tokens list in my wallet but the code that get one token info

how to get tokenlist adbout the params?

1 Like