pub trait AccountNonceApi<Block, AccountId, Nonce>: Core<Block>where
    Block: Block,
    AccountId: Codec,
    Nonce: Codec,{
    // Provided method
    fn account_nonce(
        &self,
        __runtime_api_at_param__: <Block as Block>::Hash,
        account: AccountId
    ) -> Result<Nonce, ApiError> { ... }
}
Expand description

The API to query account nonce.

Provided Methods§

fn account_nonce( &self, __runtime_api_at_param__: <Block as Block>::Hash, account: AccountId ) -> Result<Nonce, ApiError>

Get current account nonce of given AccountId.

Trait Implementations§

§

impl<Block, AccountId, Nonce> RuntimeApiInfo for dyn AccountNonceApi<Block, AccountId, Nonce>where Block: Block,

§

const ID: [u8; 8] = [188u8, 157u8, 137u8, 144u8, 79u8, 91u8, 146u8, 63u8]

The identifier of the runtime api.
§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§