Trait substrate_frame_rpc_system::AccountNonceApi[][src]

pub trait AccountNonceApi<Block, AccountId, Index>: Core<Block> where
    AccountId: Codec,
    Index: Codec,
    Block: Block
{ pub fn account_nonce(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        account: AccountId
    ) -> Result<Index, Self::Error> { ... }
pub fn account_nonce_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        account: AccountId
    ) -> Result<Index, Self::Error> { ... } }
[]

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

Provided methods

pub fn account_nonce(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    account: AccountId
) -> Result<Index, Self::Error>
[src][]

Get current account nonce of given AccountId.

pub fn account_nonce_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    account: AccountId
) -> Result<Index, Self::Error>
[src][]

Get current account nonce of given AccountId.

Trait Implementations

impl<Block, AccountId, Index, __Sr_Api_Error__> RuntimeApiInfo for dyn AccountNonceApi<Block, AccountId, Index, Error = __Sr_Api_Error__> + 'static where
    Block: Block
[src][+]

Implementors

impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> AccountNonceApi<__SR_API_BLOCK__, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall> where
    RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
    AccountId: UnwindSafe + RefUnwindSafe,
    Index: UnwindSafe + RefUnwindSafe,
    __SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe