#polkadot #node #metrics

polkadot-node-core-chain-api

The Chain API subsystem provides access to chain related utility functions like block number to hash conversions

8 major breaking releases

new 8.0.0 Feb 13, 2024
7.0.0 Jan 24, 2024
6.0.0 Dec 13, 2023
5.0.0 Nov 21, 2023
0.0.0 Nov 21, 2022
Download history 113/week @ 2023-10-30 89/week @ 2023-11-06 154/week @ 2023-11-13 295/week @ 2023-11-20 382/week @ 2023-11-27 165/week @ 2023-12-04 281/week @ 2023-12-11 201/week @ 2023-12-18 143/week @ 2023-12-25 233/week @ 2024-01-01 259/week @ 2024-01-08 204/week @ 2024-01-15 288/week @ 2024-01-22 238/week @ 2024-01-29 418/week @ 2024-02-05 495/week @ 2024-02-12

1,448 downloads per month
Used in 6 crates (2 directly)

GPL-3.0-only

25KB
539 lines

Implements the Chain API Subsystem

Provides access to the chain data. Every request may return an error. At the moment, the implementation requires Client to implement HeaderBackend, we may add more bounds in the future if we will need e.g. block bodies.

Supported requests:

  • Block hash to number
  • Block hash to header
  • Block weight (cumulative)
  • Finalized block number to hash
  • Last finalized block number
  • Ancestors

Dependencies

~69–115MB
~2M SLoC