pub trait AccountNonceApi<Block, AccountId, Index>: Core<Block>where
    Block: Block,
    AccountId: Codec,
    Index: Codec,{
    // Provided methods
    fn account_nonce(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        account: AccountId
    ) -> Result<Index, ApiError> { ... }
    fn account_nonce_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        account: AccountId
    ) -> Result<Index, ApiError> { ... }
}
Expand description

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

Provided Methods§

source

fn account_nonce( &self, __runtime_api_at_param__: &BlockId<Block>, account: AccountId ) -> Result<Index, ApiError>

Get current account nonce of given AccountId.

source

fn account_nonce_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, account: AccountId ) -> Result<Index, ApiError>

Get current account nonce of given AccountId.

Trait Implementations§

source§

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

source§

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

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§