Crate relay_substrate_client
source ·Expand description
Tools to interact with Substrate node using RPC methods.
Modules§
- Basic runtime calls.
- Pallet provides a set of guard functions that are running in background threads and are aborting process if some condition fails.
- Contains several Substrate-specific metrics that may be exposed by relay.
- Pallet provides a set of guard functions that are running in background threads and are aborting process if some condition fails. Test chain implementation to use in tests.
Structs§
- Substrate-over-websocket connection params.
- Structure that implements
UtilityPalletProvider
based on a full runtime. - Structure that implements
UtilityPalletProvider
based on a call conversion. - Sign transaction parameters
- A simple runtime version. It only includes the
spec_version
andtransaction_version
. - Structure describing a stream.
- Subscription to some chain events.
- Generic wrapper for
sp_runtime::traits::Header
based headers, that implementsfinality_relay::SourceHeader
and may be used in headers sync directly. - Substrate transaction tracker implementation.
- Transaction before it is signed.
Enums§
- Chain runtime version in client
- Errors that can occur only when interacting with a Substrate node through RPC.
- Era of specific transaction.
Constants§
- The difference between best block number and number of its ancestor, that is enough for us to consider that ancestor an “ancient” block with dropped state.
Traits§
- Block with justification.
- Substrate-based chain from minimal relay-client point of view.
- Minimal Substrate-based chain representation that may be used from no_std environment.
- Substrate-based chain with
AccountData
generic argument offrame_system::AccountInfo
set to thepallet_balances::AccountData<Balance>
. - Substrate-based chain that is using direct GRANDPA finality from minimal relay-client point of view.
- Substrate-based chain with messaging support from minimal relay-client point of view.
- Bridge-supported network definition.
- Substrate-based chain transactions signing scheme.
- Substrate-based chain that uses
pallet-utility
. - Relay uses the
Client
to communicate with the node, connected to Substrate chainC
. - Substrate-based parachain from minimal relay-client point of view.
- Minimal parachain representation that may be used from no_std environment.
- Substrate-based relay chain that supports parachains.
- A trait that provides the type of the underlying chain.
- Trait that provides functionality defined inside
pallet-utility
Functions§
- Returns
true
if we think that the state is already discarded for given block. - Creates new RPC client with caching support.
- Returns stall timeout for relay loop.
Type Aliases§
- Account id type used by the chain.
- Account key pair used by transactions signing scheme.
- Account public type used by the chain.
- Balance type used by the chain.
- Block number used by the chain.
- Call type used by the chain.
- Hash type used by the chain.
- Header id used by the chain.
- Header type used by the chain.
- Transaction nonce type used by the chain.
- Opaque GRANDPA authorities set.
- Result type used by Substrate client.
- Type of RPC client with caching support.
- Signature type used by the chain.
- Signed block type of given chain.
- Transaction era used by the chain.
- Transaction status of the chain.