Expand description
A library to submit extrinsics to a substrate node via RPC.
Re-exports
pub use bitvec;
pub use codec;
pub use sp_core;
pub use sp_runtime;
pub use crate::extrinsic::UncheckedExtrinsic;
pub use crate::rpc::BlockNumber;
pub use crate::rpc::ReadProof;
pub use crate::rpc::SystemProperties;
pub use crate::storage::KeyIter;
pub use crate::storage::StorageEntry;
pub use crate::storage::StorageEntryKey;
pub use crate::storage::StorageMapKey;
Modules
For working with events.
Create signed or unsigned extrinsics.
RPC types and client for interacting with a substrate node.
For querying runtime storage.
Structs
Client to interface with a substrate node.
ClientBuilder for constructing a Client.
Default SignedExtra
for substrate runtimes.
Wraps an already encoded byte vector, prevents being encoded as a raw byte vector as part of the transaction payload
Metadata for specific errors.
A decoded event and associated details.
A collection of events obtained from a block, bundled with the necessary information needed to decode and iterate over them.
Runtime metadata.
Extrinsic signer using a private key.
Metadata for a specific pallet.
The raw bytes for an event with associated details about where and when it was emitted.
Generic asyncronous client.
This is used in the place of the E
in GenericError<E>
when we may have a
Runtime Error. We use this wrapper so that it is possible to implement
From<Error<Infallible>
for Error<RuntimeError<E>>
.
A constructed call ready to be signed and submitted.
This represents the events related to our transaction. We can iterate over the events, or look for a specific one.
This struct represents a transaction that has made it into a block.
This struct represents a subscription to the progress of some transaction, and is
returned from crate::SubmittableExtrinsic::sign_and_submit_then_watch()
.
A wrapper for any type T
which implement encode/decode in a way compatible with Vec<u8>
.
Enums
Default set of commonly used types by Substrate runtimes.
The underlying error enum, generic over the type held by the Runtime
variant. Prefer to use the Error<E>
and BasicError
aliases over
using this type directly.
Metadata error.
A phase of a block’s execution.
Hasher used by storage maps
Transaction error.
Possible transaction statuses returned from our TransactionProgress::next_item()
call.
Traits
Trait to fetch data about an account.
Call trait.
Runtime types.
Event trait.
This trait is automatically implemented for the generated DispatchError
,
so that we can pluck out information about the Module
error variant, if`
it exists.
Trait for implementing transaction extras for a runtime.
Extrinsic signer.
Type Definitions
An error that will never contain a runtime error.
A default SignedExtra
configuration, with ChargeTransactionPayment
for tipping.
An error that may contain some runtime error E
This represents a key-value collection and is SCALE compatible
with collections like BTreeMap. This has the same type params
as BTreeMap
which allows us to easily swap the two during codegen.