/block?height= 获取完整区块,以及使用 /blockchain?minHeight=_&maxHeight=_ 获取区块头列表。但这些区块中究竟存储了什么?
规范 对每个组件都提供了详细说明,这是最适合开始了解的地方。
如果想进一步深入,可以查看 types 包文档。
The CometBFT consensus engine records all agreements by 2/3+ of nodes into a blockchain, which is replicated among all nodes. This blockchain is accessible via various RPC endpoints, mainly
/block?height= to get the full
block, as well as /blockchain?minHeight=_&maxHeight=_ to get a list of
headers. But what exactly is stored in these blocks?
The specification contains a detailed description of each
component—that’s the best place to get started.
To dig deeper, check out the types package documentation.