跳转到主要内容
POST
一次调用获取最多 100 个账户在过去某一时间点的 SOL 余额。每个余额都附带确定该余额的那次变化:其 slot、时间、变化前余额和带符号的变化量。
  • slot 和 timestamp 必须且只能传入一个。timestamp 为 Unix 秒。
  • 返回的余额是该时间点当时或之前的最后一个余额。lastBalanceChange.slot 和 timestamp 属于那次变化,而不是你查询的时间点。
  • balances 与 accounts 顺序一致。当时尚不存在、或已关闭且 lamports 为零的账户返回 null;found 统计其余账户数。
  • 每次请求 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>
默认值:getHistoricalSolBalances
必填

The name of the RPC method to invoke.

可用选项:
getHistoricalSolBalances
示例:

"getHistoricalSolBalances"

params
object[]
必填

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

响应

Historical SOL 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.