referrerpolicy=no-referrer-when-downgrade
relay_substrate_client

Trait ChainWithTransactions

Source
pub trait ChainWithTransactions: Chain {
    type AccountKeyPair: Pair + Clone + Send + Sync;
    type SignedTransaction: Clone + Debug + Codec + Send + 'static;

    // Required method
    fn sign_transaction(
        param: SignParam<Self>,
        unsigned: UnsignedTransaction<Self>,
    ) -> Result<Self::SignedTransaction, Error>
       where Self: Sized;
}
Expand description

Substrate-based chain transactions signing scheme.

Required Associated Types§

Source

type AccountKeyPair: Pair + Clone + Send + Sync

Type of key pairs used to sign transactions.

Source

type SignedTransaction: Clone + Debug + Codec + Send + 'static

Signed transaction.

Required Methods§

Source

fn sign_transaction( param: SignParam<Self>, unsigned: UnsignedTransaction<Self>, ) -> Result<Self::SignedTransaction, Error>
where Self: Sized,

Create transaction for given runtime call, signed by given account.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§