Crate subxt

source · []
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

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

Event subscription simplifies filtering a storage change set stream for events of interest.

Events decoder.

Event subscription to only fetch finalized storage changes.

Runtime metadata.

Extrinsic signer using a private key.

Metadata for a specific pallet.

Raw bytes for an Event

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.

Wrapper over imported and finalized event subscriptions.

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.

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

Attribute Macros