Trait GetTransactionPayment

Source
pub trait GetTransactionPayment {
    type Hash;
    type Balance;

    // Required methods
    fn get_fee_details<'life0, 'life1, 'async_trait>(
        &'life0 self,
        encoded_extrinsic: &'life1 Bytes,
        at_block: Option<Self::Hash>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<FeeDetails<Self::Balance>>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_payment_info<'life0, 'life1, 'async_trait>(
        &'life0 self,
        encoded_extrinsic: &'life1 Bytes,
        at_block: Option<Self::Hash>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<RuntimeDispatchInfo<Self::Balance>>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Interface to common calls of the substrate transaction payment pallet.

Required Associated Types§

Required Methods§

Source

fn get_fee_details<'life0, 'life1, 'async_trait>( &'life0 self, encoded_extrinsic: &'life1 Bytes, at_block: Option<Self::Hash>, ) -> Pin<Box<dyn Future<Output = Result<Option<FeeDetails<Self::Balance>>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_payment_info<'life0, 'life1, 'async_trait>( &'life0 self, encoded_extrinsic: &'life1 Bytes, at_block: Option<Self::Hash>, ) -> Pin<Box<dyn Future<Output = Result<Option<RuntimeDispatchInfo<Self::Balance>>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

Source§

impl<T, Client> GetTransactionPayment for Api<T, Client>
where T: Config, Client: Request, T::Balance: TryFrom<NumberOrHex> + FromStr,

Source§

type Hash = <T as Config>::Hash

Source§

type Balance = <T as Config>::Balance