Skip to main content
POST
Page through every token account that approved an address as its delegate with getTokenAccountsByDelegateV2. Powered by Ridge DB. It takes the same arguments as getTokenAccountsByDelegate, plus paging options, so a delegate approved by thousands of accounts loads in pages instead of one huge reply.
  • Pass exactly one of mint or programId. programId must be the SPL Token or Token-2022 program.
  • limit is 1 to 10,000 per page (default 1,000). Pass nextCursor back as cursor, with the same filter and options, until hasMore is false.
  • Every page includes totalCount, the exact number of matching accounts.
  • excludeZero skips empty accounts and returns the largest balances first. Without it, accounts come back in address order.
  • changedSince returns only accounts changed after that slot.
  • Without encoding, account data comes back as base64.
Costs 1 credit per call and counts against the getProgramAccounts RPS limit. Request setup and error handling: RPC quickstart. Billing: credits and limits.

Authorizations

api_key
string
query
required

Body

application/json
jsonrpc
enum<string>

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string

A unique identifier for the request.

Example:

"1"

method
enum<string>

The name of the RPC method to invoke.

Available options:
getTokenAccountsByDelegateV2
Example:

"getTokenAccountsByDelegateV2"

params
string · object · object[]

Parameters for paging through token accounts approved to a delegate.

Delegate address to query, as a base-58 encoded string. Returns token accounts that approved this address as their delegate.

Example:

"4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T"

Response

Successfully retrieved a page of token accounts by delegate.

jsonrpc
enum<string>

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string

Identifier matching the request.

Example:

"1"

result
object

One page of token accounts approved to the delegate.