Trait substrate_frame_rpc_system::SystemApi[][src]

pub trait SystemApi<BlockHash, AccountId, Index>: Sized + Send + Sync + 'static {
    fn nonce(&self, account: AccountId) -> FutureResult<Index>;
fn dry_run(
        &self,
        extrinsic: Bytes,
        at: Option<BlockHash>
    ) -> FutureResult<Bytes>; fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
    where
        BlockHash: Send + Sync + 'static + DeserializeOwned,
        AccountId: Send + Sync + 'static + DeserializeOwned,
        Index: Send + Sync + 'static + Serialize
, { ... } }
Expand description

System RPC methods.

Required methods

Returns the next valid index (aka nonce) for given account.

This method takes into consideration all pending transactions currently in the pool and if no transactions are found in the pool it fallbacks to query the index from the runtime (aka. state nonce).

Dry run an extrinsic at a given block. Return SCALE encoded ApplyExtrinsicResult.

Provided methods

Create an IoDelegate, wiring rpc calls to the trait methods.

Implementors