curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getTokenAccounts",
"params": {
"owner": "86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY",
"limit": 100
}
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"total": 2,
"limit": 100,
"token_accounts": [
{
"address": "AUH6c4QLMr2qQr9N5Kkpz5astDM9gBNroXCSxQiFTGQv",
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": 2500000,
"owner": "86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY",
"frozen": false,
"delegate": null,
"delegated_amount": 0,
"close_authority": null,
"extensions": null
},
{
"address": "DYougPS3ao5Ticdy5bFcKKcXgSjHVJ2yuwaMgxHpPoQr",
"mint": "So11111111111111111111111111111111111111112",
"amount": 120000000,
"owner": "86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY",
"frozen": false,
"delegate": null,
"delegated_amount": 0,
"close_authority": null,
"extensions": null
}
],
"cursor": "DYougPS3ao5Ticdy5bFcKKcXgSjHVJ2yuwaMgxHpPoQr",
"errors": [],
"last_indexed_slot": 386120417
}
}DAS API
getTokenAccounts DAS Method
List SPL Token and Token-2022 accounts by owner, by mint, or both, sorted by address with cursor or page pagination. getTokenAccounts parameters and examples.
POST
/
curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getTokenAccounts",
"params": {
"owner": "86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY",
"limit": 100
}
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"total": 2,
"limit": 100,
"token_accounts": [
{
"address": "AUH6c4QLMr2qQr9N5Kkpz5astDM9gBNroXCSxQiFTGQv",
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": 2500000,
"owner": "86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY",
"frozen": false,
"delegate": null,
"delegated_amount": 0,
"close_authority": null,
"extensions": null
},
{
"address": "DYougPS3ao5Ticdy5bFcKKcXgSjHVJ2yuwaMgxHpPoQr",
"mint": "So11111111111111111111111111111111111111112",
"amount": 120000000,
"owner": "86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY",
"frozen": false,
"delegate": null,
"delegated_amount": 0,
"close_authority": null,
"extensions": null
}
],
"cursor": "DYougPS3ao5Ticdy5bFcKKcXgSjHVJ2yuwaMgxHpPoQr",
"errors": [],
"last_indexed_slot": 386120417
}
}Covers SPL Token and Token-2022 accounts, sorted by token account address. Also accepted as
get_token_accounts.
- Send
owner,mintor both.ownerAddressandmintAddressare accepted as aliases. - Empty token accounts are hidden unless
options.showZeroBalanceistrue. amountis the raw balance in base units.limitdefaults to 1000 and may not exceed 1000.- With no
page,beforeorafter, the responsecursoris the last account’s address. Send it back ascursorfor the next page; stop whentoken_accountsis empty. - A query that matches more than 200,000 token accounts returns an error, so
mintalone does not work for widely held tokens. Addowner, or use getTokenLargestAccounts. - Costs 1 credit and counts against your plan’s DAS RPS limit.
Body
application/json
Was this page helpful?