Trait GetAccountInformation

Source
pub trait GetAccountInformation {
    type AccountId;
    type Index;
    type AccountData;

    // Required methods
    fn get_system_account_next_index<'life0, 'async_trait>(
        &'life0 self,
        account_id: Self::AccountId,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Index>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_account_info<'life0, 'life1, 'async_trait>(
        &'life0 self,
        address: &'life1 Self::AccountId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<AccountInfo<Self::Index, Self::AccountData>>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_account_data<'life0, 'life1, 'async_trait>(
        &'life0 self,
        address: &'life1 Self::AccountId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Self::AccountData>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_account_nonce<'life0, 'life1, 'async_trait>(
        &'life0 self,
        account: &'life1 Self::AccountId,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Index>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn get_system_account_next_index<'life0, 'async_trait>( &'life0 self, account_id: Self::AccountId, ) -> Pin<Box<dyn Future<Output = Result<Self::Index>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves the next account index as available on the node.

Source

fn get_account_info<'life0, 'life1, 'async_trait>( &'life0 self, address: &'life1 Self::AccountId, ) -> Pin<Box<dyn Future<Output = Result<Option<AccountInfo<Self::Index, Self::AccountData>>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_account_data<'life0, 'life1, 'async_trait>( &'life0 self, address: &'life1 Self::AccountId, ) -> Pin<Box<dyn Future<Output = Result<Option<Self::AccountData>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_account_nonce<'life0, 'life1, 'async_trait>( &'life0 self, account: &'life1 Self::AccountId, ) -> Pin<Box<dyn Future<Output = Result<Self::Index>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get nonce of an account.

Implementors§

Source§

impl<T, Client> GetAccountInformation for Api<T, Client>
where T: Config, Client: Request,