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

The API to query account nonce.

Provided Methods§

source

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

Get current account nonce of given AccountId.

Trait Implementations§

source§

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

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§