[][src]Trait substrate_subxt::balances::TransferCallExt

pub trait TransferCallExt<T: Runtime + Balances> {
    fn transfer<'a>(
        &'a self,
        signer: &'a (dyn Signer<T> + Send + Sync),
        to: &'a <T as System>::Address,
        amount: T::Balance
    ) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>;
fn transfer_and_watch<'a>(
        &'a self,
        signer: &'a (dyn Signer<T> + Send + Sync),
        to: &'a <T as System>::Address,
        amount: T::Balance
    ) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>; }

Call extension trait.

Required methods

fn transfer<'a>(
    &'a self,
    signer: &'a (dyn Signer<T> + Send + Sync),
    to: &'a <T as System>::Address,
    amount: T::Balance
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>

Create and submit an extrinsic.

fn transfer_and_watch<'a>(
    &'a self,
    signer: &'a (dyn Signer<T> + Send + Sync),
    to: &'a <T as System>::Address,
    amount: T::Balance
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>

Create, submit and watch an extrinsic.

Loading content...

Implementors

impl<T: Runtime + Balances> TransferCallExt<T> for Client<T> where
    <<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync
[src]

Loading content...