GetBlockBalance

查询指定区块中已记录的 TRX 余额变动;使用前需确认节点已启用并积累历史余额记录。

使用前提与数据缺失处理

查询前,请确认节点已保存目标区块的 TRX 余额变动记录。自建节点需启用 storage.balance.history.lookup(默认关闭);启用后,节点只记录此后处理的区块中的余额变动,不会补录此前的数据。

如不自建节点,可通过官方历史余额节点查询主网数据,例如 http://18.139.193.235:8090、http://13.228.119.63:8090、http://18.141.79.38:8090 或 http://18.139.248.26:8090。

如果接口返回 This block does not exist,请先通过 GetBlock 确认区块是否存在。如果区块存在,说明节点没有保存该区块的余额变动记录,不能据此认定该区块没有余额变动。

Body Params
string
required

区块哈希(ID)。主网示例:0000000003dba95c7f05cedf1ba32cd64b6baa082a7870f533b4451703e432ab

int32
required

区块编号,必须与哈希指向同一区块。主网示例:64727388

boolean

可选。设置为 true 时地址以 Base58 格式返回;设置为 false 时以 hex 格式返回。(默认:false)

Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json