Trait sc_rpc::dev::DevApiServer

source ·
pub trait DevApiServer<Hash>: 'static + Sized + Send + Sync {
    fn block_stats(&self, block_hash: Hash) -> Result<Option<BlockStats>, Error>;

    fn into_rpc(self) -> RpcModule<Self>
    where
        Hash: 'static + Send + Sync + DeserializeOwned
, { ... } }
Expand description

Server trait implementation for the DevApi RPC API.

Required Methods§

Reexecute the specified block_hash and gather statistics while doing so.

This function requires the specified block and its parent to be available at the queried node. If either the specified block or the parent is pruned, this function will return None.

Provided Methods§

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

Implementors§