Trait AccountNonceApi

Source
pub trait AccountNonceApi<Block: BlockT, AccountId, Index>: Core<Block>
where AccountId: Codec, Index: Codec,
{ // Provided methods fn account_nonce( &self, __runtime_api_at_param__: &BlockId<Block>, account: AccountId, ) -> Result<Index, Self::Error> { ... } fn account_nonce_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, account: AccountId, ) -> Result<Index, Self::Error> { ... } }
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, Self::Error>

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, Self::Error>

Get current account nonce of given AccountId.

Trait Implementations§

Source§

impl<Block: BlockT, AccountId, Index, __Sr_Api_Error__> RuntimeApiInfo for dyn AccountNonceApi<Block, AccountId, Index, Error = __Sr_Api_Error__>

Source§

const ID: [u8; 8]

The identifier of the runtime api.
Source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§