mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 18:57:57 +00:00
d00bdfef08
* chain-api subsystem: implement BlockHeader messsage * update the guide
21 lines
571 B
Markdown
21 lines
571 B
Markdown
# Chain API
|
|
|
|
The Chain API subsystem is responsible for providing a single point of access to chain state data via a set of pre-determined queries.
|
|
|
|
## Protocol
|
|
|
|
Input: [`ChainApiMessage`](../../types/overseer-protocol.md#chain-api-message)
|
|
|
|
Output: None
|
|
|
|
## Functionality
|
|
|
|
On receipt of `ChainApiMessage`, answer the request and provide the response to the side-channel embedded within the request.
|
|
|
|
Currently, the following requests are supported:
|
|
* Block hash to number
|
|
* Block hash to header
|
|
* Finalized block number to hash
|
|
* Last finalized block number
|
|
* Ancestors
|