GetBlock

根据区块高度或者区块哈希查询区块头信息或者整个区块信息(已固化状态)

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

返回值

字段类型描述
blockIDstring区块哈希。
block_header.raw_data.timestampint64区块时间戳。(单位: 毫秒)
block_header.raw_data.txTrieRootstring交易 Merkle tree 的根哈希。
block_header.raw_data.parentHashstring父区块哈希。
block_header.raw_data.numberint64区块编号 (高度)。
block_header.raw_data.witness_idint64产块节点 ID
block_header.raw_data.witness_addressstring生产该区块的超级代表 (SR) 地址。
block_header.raw_data.versionint32协议版本号。
block_header.raw_data.accountStateRootstring账户状态树的根哈希。
block_header.witness_signaturestring超级代表 (SR) 签名。
transactionsTransaction[]区块中的交易对象列表。每笔交易的具体内容请详见 GetTransactionById
Body Params
string

区块高度或区块哈希。若未设置,则查询最新区块。例如:1000000

boolean
Defaults to false

是否查询完整的区块信息。设置为 true 则查询整个区块详情;设置为 false 则只查询区块头。(默认值: false)

Responses

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