#block

polkadot-node-core-chain-api

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

17 major breaking releases

18.0.0 Oct 1, 2024
17.0.0 Jul 19, 2024
15.0.0 Jul 13, 2024
14.0.0 Jun 24, 2024
0.0.0 Nov 21, 2022

#186 in #block

Download history 375/week @ 2024-07-25 392/week @ 2024-08-01 520/week @ 2024-08-08 667/week @ 2024-08-15 607/week @ 2024-08-22 367/week @ 2024-08-29 574/week @ 2024-09-05 665/week @ 2024-09-12 815/week @ 2024-09-19 1170/week @ 2024-09-26 711/week @ 2024-10-03 733/week @ 2024-10-10 846/week @ 2024-10-17 757/week @ 2024-10-24 1010/week @ 2024-10-31 714/week @ 2024-11-07

3,434 downloads per month
Used in 5 crates (2 directly)

GPL-3.0-only

26KB
539 lines

Release

Polkadot SDK stable2409


lib.rs:

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

~96–140MB
~2.5M SLoC