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.
Modules§
- polkadot
- Polkadot specific configuration
- substrate
- Substrate specific configuration
- transaction_
extensions - This module contains implementations for common transaction extensions, each
of which implements
TransactionExtension
, and can be used in conjunction withAnyOf
to configure the set of transaction extensions which are known about when interacting with a chain.
Structs§
- Default
Extrinsic Params Builder - A builder that outputs the set of
super::ExtrinsicParams::Params
required forDefaultExtrinsicParams
. This may expose methods that aren’t applicable to the current chain; such values will simply be ignored if so.
Enums§
- Polkadot
Config - Default set of commonly used types by Polkadot nodes.
- Substrate
Config - Default set of commonly used types by Substrate runtimes.
Traits§
- Block
Hash - Block hashes must conform to a bunch of things to be used in Subxt.
- Config
- Runtime types.
- Extrinsic
Params - This trait allows you to configure the “signed extra” and “additional” parameters that are a part of the transaction payload or the signer payload respectively.
- Extrinsic
Params Encoder - This trait is expected to be implemented for any
ExtrinsicParams
, and defines how to encode the “additional” and “extra” params. Both functions are optional and will encode nothing by default. - Hasher
- This represents the hasher used by a node to hash things like block headers and extrinsics.
- Header
- This represents the block header type used by a node.
- Transaction
Extension - A single
TransactionExtension
has a unique name, but is otherwise the same asExtrinsicParams
in describing how to encode the extra and additional data.
Type Aliases§
- Default
Extrinsic Params - The default
super::ExtrinsicParams
implementation understands common signed extensions and how to apply them to a given chain. - Params
For - given some
Config
, this return the other params needed for itsExtrinsicParams
. - Polkadot
Extrinsic Params - A struct representing the signed extra and additional parameters required to construct a transaction for a polkadot node.
- Polkadot
Extrinsic Params Builder - A builder which leads to
PolkadotExtrinsicParams
being constructed. This is what you provide to methods likesign_and_submit()
. - Substrate
Extrinsic Params - A struct representing the signed extra and additional parameters required to construct a transaction for the default substrate node.
- Substrate
Extrinsic Params Builder - A builder which leads to
SubstrateExtrinsicParams
being constructed. This is what you provide to methods likesign_and_submit()
.