跳转到主要内容
POST
getTokenAccountsByDelegate
该方法由 Ridge DB 驱动。mint 和 programId 必须且只能传入一个。未指定 encoding 时,账户数据以 base64 返回。委托账户数量较多时,请使用 getTokenAccountsByDelegateV2 分页。每次调用消耗 1 积分,并计入 getProgramAccounts RPS 限制。 请求配置和错误处理见 RPC 快速入门。计费见积分与限制。

授权

api_key
string
query
必填

请求体

application/json
jsonrpc
enum<string>
默认值:2.0
必填

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string
默认值:1
必填

A unique identifier for the request.

示例:

"1"

method
enum<string>
默认值:getTokenAccountsByDelegate
必填

The name of the RPC method to invoke.

可用选项:
getTokenAccountsByDelegate
示例:

"getTokenAccountsByDelegate"

params
string · object · object[]
必填

Parameters for querying token accounts by delegate.

Solana address (public key) of the delegate that has been authorized to manage token accounts.

示例:

"4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T"

响应

Successfully retrieved token accounts by delegate.

jsonrpc
enum<string>

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string

Identifier matching the request.

示例:

"1"

result
object

Context and account details.