get Token Accounts By Delegate V2
Every token account that approved a delegate, paged with a cursor, with an exact total.
1 credit a call. Free plan includes 500,000 credits a month.
What it returns
Same arguments as getTokenAccountsByDelegate, plus pages of up to 10,000, a cursor, totalCount, changedSince and excludeZero.
A delegate approved by thousands of token accounts, like a program authority, loads in pages instead of one huge reply.
What you can build
Approval audits
List every token account that approved a program or wallet.
Incident response
Find the wallets exposed to a compromised delegate.
Program accounting
Read the accounts delegated to your program’s authority.
Exposure counts
Read how many accounts approve a delegate from totalCount.
Call it
Replace the URL with your endpoint from the dashboard.
getTokenAccountsByDelegateV21 credit
Request
curl "$SOLANA_RPC_URL" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "getTokenAccountsByDelegateV2", "params": [ "<delegate>", { "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "encoding": "jsonParsed", "limit": 1000, "excludeZero": true } ] }'
Response shape
{
"accounts": [
{
"pubkey": "…",
"account": {
"data": {
"program": "spl-token",
"parsed": {
"type": "account",
"info": {
"mint": "…",
"owner": "…",
"delegate": "<delegate>",
"delegatedAmount": {
"amount": "…",
"decimals": 6,
"uiAmountString": "…"
},
"tokenAmount": {
"amount": "…",
"decimals": 6,
"uiAmountString": "…"
}
}
}
}
}
}
],
"cursor": "…",
"totalCount": "…"
}Parameters
- delegatestring
- The delegate. First positional parameter.
- mint | programIdobject
- Second parameter, as in getTokenAccountsByDelegate.
- limitnumber
- 1 to 10,000 a page.
- cursorstring
- From the previous page, with the same filter.
- changedSincenumber
- Only accounts modified at or after this slot.
- excludeZeroboolean
- Skip empty accounts.
Start calling getTokenAccountsByDelegateV2.
Free to start. Paid plans from €39 a month.