pub trait AccountNonceApi<Block: BlockT, AccountId, Index>: Core<Block>{
// 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§
Sourcefn account_nonce(
&self,
__runtime_api_at_param__: &BlockId<Block>,
account: AccountId,
) -> Result<Index, Self::Error>
fn account_nonce( &self, __runtime_api_at_param__: &BlockId<Block>, account: AccountId, ) -> Result<Index, Self::Error>
Get current account nonce of given AccountId
.
Sourcefn account_nonce_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
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>
Get current account nonce of given AccountId
.