Token Program
There are multiple methods to choose from when querying data from the Token Program.
Query by mint
Original token program
{
"jsonrpc": "2.0",
"id": 1,
"method": "getProgramAccounts",
"params": [
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
{
"filters": [
{
"dataSize": 165
},
{
"memcmp": {
"offset": 0,
"bytes": "j14XLJZSVMcUYpAfajdZRpnfHUpJieZHS4aPektLWvh"
}
}
],
"encoding": "base64"
}
]
}Token22
Query by owner
Original token program
Token22
Troubleshooting
Digital Assets API
Last updated
Was this helpful?