跳转到主要内容
POST
使用 getTransfersForAddress 获取已解析的钱包转账记录。每行是一条转账记录,包含签名、发送方和接收方及其所属钱包、mint、原始金额和 UI 金额、slot 和区块时间。包括原生 SOL、SPL Token 和 Token-2022 转账。
  • 筛选条件:direction(in、out 或 all)、mint、以 Unix 秒表示的 blockTime 范围,以及 slot 范围。
  • 状态:默认只返回成功交易中的转账。将 status 设为 failed 或 any 可包含失败交易中的转账,这些转账在链上没有实际转移资产。
  • 每页数量:limit 为 1 到 1,000,默认为 100。
  • 分页:传入返回的 paginationToken,并保持相同的地址、排序方式和筛选条件。响应中没有 paginationToken 时停止。位于 slot 范围边缘的页面即使仍返回了 token,行数也可能少于 limit。
  • 严格配置:未知的配置字段会返回 -32602,因此拼错的筛选条件不会扩大结果范围。
每次调用消耗 2 积分。 请求配置和错误处理见 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>
必填

The name of the RPC method to invoke.

可用选项:
getTransfersForAddress
示例:

"getTransfersForAddress"

params
(string | object)[]
必填

The wallet address, then an optional configuration object.

Wallet address as a base-58 string.

示例:

"7xK1a6Ut1pCrH9CiMwdEqx7RyhqgUZRux692Sg4m1TTw"

响应

Successfully retrieved a page of transfers.

jsonrpc
enum<string>

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string

Identifier matching the request.

示例:

"1"

result
object

One page of transfers.