Trait substrate_frame_rpc_system::AccountNonceApi [−][src]
pub trait AccountNonceApi<Block, AccountId, Index>: Core<Block> where
AccountId: Codec,
Index: Codec,
Block: Block, { 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
fn account_nonce(
&self,
__runtime_api_at_param__: &BlockId<Block>,
account: AccountId
) -> Result<Index, ApiError>
fn account_nonce(
&self,
__runtime_api_at_param__: &BlockId<Block>,
account: AccountId
) -> Result<Index, ApiError>
Get current account nonce of given AccountId
.
fn account_nonce_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
account: AccountId
) -> Result<Index, ApiError>
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
.