Crate aleph_client
source ·Expand description
API for aleph-node chain.
This crate provides a Rust application interface for submitting transactions to aleph-node
chain.
Most of the pallets are common to any
Substrate chain, but there are some unique to aleph-node
,
e.g. pallets::elections::ElectionsApi
.
Re-exports
pub use contract_transcode;
pub use subxt::ext::codec;
pub use subxt::ext::sp_core;
pub use subxt::ext::sp_runtime;
Modules
- Contains types and functions simplifying common contract-related operations.
- API for pallets.
- Block / session / era API.
- Waiting for some events API.
Structs
- Capable of communicating with a live Aleph chain.
- Used for signing extrinsic payload
- Specific connection that is signed by the sudo key.
- Any connection that is signed by some key.
- Data regarding submitted transaction.
Enums
- When submitting a transaction, wait for given status before proceeding.
Constants
- We target 1 block per 1 second.
Traits
- Castability to a plain connection.
- Castability to a signed connection.
- Any connection should be able to request storage and submit RPC calls
- Trait suitable for typical cryptographic PKI key pair type.
- Signed connection should be able to sends transactions to chain
- API for sudo pallet.
Functions
- Converts a key pair object to
AccountId
. - Converts given seed phrase to a ed25519
AlephKeyPair
object. - Converts given seed phrase to a sr25519
KeyPair
object. - Converts given seed phrase to a sr25519
RawKeyPair
object.
Type Definitions
- An alias for an account id type.
- An alias for a pallet aleph keys.
- An alias for token amount.
- An alias for a block hash type.
- An alias for block index.
- An alias for a hash type.
- An alias for counter for the number of eras that have passed.
- An alias for a type of a key pair that signs chain transactions.
- An alias for index type with which we can count sessions.
- An alias for index type with which we can index sessions.
- An alias for an RPC client type.
- An alias for a transaction hash type.
- An alias for finality version.