referrerpolicy=no-referrer-when-downgrade
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.

Object Safety§

This trait is not object safe.

Implementors§