跳转到主要内容
POST
获取最多 100 个代币账户在过去某一时间点的余额。每个条目包含账户的所有者、mint、金额和小数位数,以及确定该余额的那次变化。此后已关闭的代币账户同样适用。
  • 传入代币账户地址而不是钱包地址,并且 slot 和 timestamp(Unix 秒)必须且只能传入一个。
  • 返回的余额是该时间点当时或之前的最后一个余额。lastBalanceChange.slot 和 timestamp 属于那次变化,而不是你查询的时间点。
  • balances 与 accounts 顺序一致;在该时间点没有已知余额的账户返回 null。
  • 金额仅为代币数量,不包含账户的租金 lamports;如需完整账户,请使用带 slot 的 getAccountInfo。
  • 余额为零并不表示账户已关闭。
  • 每次请求 1 到 100 个账户。
费用:每次调用 2 积分,计入通用 RPS。 请求配置和错误处理见 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>
默认值:getHistoricalTokenAccountBalances
必填

The name of the RPC method to invoke.

可用选项:
getHistoricalTokenAccountBalances
示例:

"getHistoricalTokenAccountBalances"

params
object[]
必填

A single configuration object with the token accounts and one point in time.

响应

Historical token account balances in request order.

jsonrpc
enum<string>

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string

Identifier matching the request.

示例:

"1"

result
object

Balances in request order.