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
, { ... } }

System RPC methods.

Required methods

fn nonce(&self, account: AccountId) -> FutureResult<Index>[src]

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).

fn dry_run(
    &self,
    extrinsic: Bytes,
    at: Option<BlockHash>
) -> FutureResult<Bytes>
[src]

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

Loading content...

Provided methods

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
[src]

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

Loading content...

Implementors

impl<P, C, Block, AccountId, Index> SystemApi<<Block as Block>::Hash, AccountId, Index> for FullSystem<P, C, Block> where
    C: ProvideRuntimeApi<Block>,
    C: HeaderBackend<Block>,
    C: Send + Sync + 'static,
    C::Api: AccountNonceApi<Block, AccountId, Index>,
    C::Api: BlockBuilder<Block>,
    P: TransactionPool + 'static,
    Block: Block,
    AccountId: Clone + Display + Codec,
    Index: Clone + Display + Codec + Send + AtLeast32Bit + 'static, 
[src]

impl<P, C, F, Block, AccountId, Index> SystemApi<<Block as Block>::Hash, AccountId, Index> for LightSystem<P, C, F, Block> where
    P: TransactionPool + 'static,
    C: HeaderBackend<Block>,
    C: Send + Sync + 'static,
    F: Fetcher<Block> + 'static,
    Block: Block,
    AccountId: Clone + Display + Codec + Send + 'static,
    Index: Clone + Display + Codec + Send + AtLeast32Bit + 'static, 
[src]

Loading content...