Skip to main content
POST
使用 excludeZero 排除空代币账户。分页期间保持相同的 mint 或程序筛选条件。 请求配置和错误处理见 RPC 快速入门。计费见积分与限制。

授权

api_key
string
query
必填

请求体

application/json
jsonrpc
enum<string>
必填

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string
必填

A unique identifier for the request.

示例:

"1"

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

The name of the RPC method to invoke.

可用选项:
getTokenAccountsByOwnerV2
示例:

"getTokenAccountsByOwnerV2"

params
string · object · object[]
必填

Parameters for querying paginated token accounts owned by a specific public key.

Solana wallet address (pubkey) of the account owner to query token holdings for, as a base-58 encoded string.

示例:

"A1TMhSGzQxMr1TboBKtgixKz1sS6REASMxPo1qsyTSJd"

响应

Successfully retrieved paginated token accounts by owner.

jsonrpc
enum<string>

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string

Identifier matching the request.

示例:

"1"

result
object

Paginated token accounts with navigation metadata.