For the complete documentation index, see llms.txt. This page is also available as Markdown.

getTokenAccountsByDelegate

Returns all SPL Token accounts where the specified wallet is set as the delegate. Searches both the Token Program and Token-2022 Program.

Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getTokenAccountsByDelegate",
  "params": [
    "<delegatePubkey>",
    { "mint": "<mintPubkey>" },
    { "encoding": "base64" }
  ]
}

Parameters

Parameter
Type
Required
Description

delegatePubkey

string

Yes

Base58-encoded delegate wallet public key

filter

object

Yes

One of { "mint": "..." } or { "programId": "..." }

encoding

string

No

"base64" (default), "base58", or "base64+zstd"

dataSlice

object

No

{ offset, length }

Filter Options

By Mint:

By Program:

Response

Last updated