Module subxt::config

source ·
Expand description

This module provides a Config type, which is used to define various types that are important in order to speak to a particular chain. SubstrateConfig provides a default set of these types suitable for the default Substrate node implementation, and PolkadotConfig for a Polkadot node.

Re-exports

pub use extrinsic_params::ExtrinsicParams;
pub use polkadot::PolkadotConfig;
pub use substrate::SubstrateConfig;

Modules

This module contains a trait which controls the parameters that must be provided in order to successfully construct an extrinsic. A basic implementation of the trait is provided (BaseExtrinsicParams) which is used by the provided Substrate and Polkadot configuration.
Polkadot specific configuration
Substrate specific configuration

Structs

Take a type implementing Config (eg SubstrateConfig), and some type which describes the additional and extra parameters to pass to an extrinsic (see ExtrinsicParams), and returns a type implementing Config with those new ExtrinsicParams.

Traits

Runtime types.
This represents the hasher used by a node to hash things like block headers and extrinsics.
This represents the block header type used by a node.