Trait AccountNonceApi

Source
pub trait AccountNonceApi: RuntimeApi {
    type Index;
    type AccountId;

    // Required method
    fn account_nonce<'life0, 'async_trait>(
        &'life0 self,
        account_id: Self::AccountId,
        at_block: Option<Self::Hash>,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Index>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

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

The API to query account nonce (aka transaction index).

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§

Source§

impl<T, Client> AccountNonceApi for RuntimeApiClient<T, Client>
where T: Config, Client: Request,