#polkadot #node #lib #api

polkadot-omni-node-lib

Helper library that can be used to build a parachain node

5 unstable releases

new 0.4.2 Mar 27, 2025
0.4.1 Feb 21, 2025
0.4.0 Jan 29, 2025
0.3.0 Jan 14, 2025
0.0.0 Oct 8, 2024

#231 in #polkadot

Download history 1/week @ 2024-12-04 1/week @ 2024-12-11 63/week @ 2025-01-08 63/week @ 2025-01-15 143/week @ 2025-01-29 57/week @ 2025-02-05 7/week @ 2025-02-12 168/week @ 2025-02-19 69/week @ 2025-02-26 22/week @ 2025-03-05 28/week @ 2025-03-12 70/week @ 2025-03-19

200 downloads per month
Used in 2 crates

Apache-2.0 and GPL-3.0-only

120KB
2.5K SLoC

Polkadot Omni Node Library

Helper library that can be used to run a parachain node.

Overview

This library can be used to run a parachain node while also customizing the chain specs that are supported by default by the --chain-spec argument of the node's CLI and the parameters of the runtime that is associated with each of these chain specs.

API

The library exposes the possibility to provide a RunConfig. Through this structure 2 optional configurations can be provided:

  • a chain spec loader (an implementation of chain_spec::LoadSpec): this can be used for providing the chain specs that are supported by default by the --chain-spec argument of the node's CLI and the actual chain config associated with each one.
  • a runtime resolver (an implementation of runtime::RuntimeResolver): this can be used for providing the parameters of the runtime that is associated with each of the chain specs

Apart from this, a CliConfig can also be provided, that can be used to customize some user-facing binary author, support url, etc.

Examples

For an example, see the polkadot-parachain-bin crate.

Release

Polkadot SDK Stable 2412

Dependencies

~181MB
~3M SLoC