pub trait TxPoolServer: Sized + Send + Sync + 'static {
    // Required methods
    fn content(
        &self
    ) -> Result<TxPoolResult<HashMap<H160, HashMap<U256, Transaction>>>, ErrorObject<'static>>;
    fn inspect(
        &self
    ) -> Result<TxPoolResult<HashMap<H160, HashMap<U256, Summary>>>, ErrorObject<'static>>;
    fn status(&self) -> Result<TxPoolResult<U256>, ErrorObject<'static>>;

    // Provided method
    fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description

Server trait implementation for the TxPool RPC API.

Required Methods§

source

fn content( &self ) -> Result<TxPoolResult<HashMap<H160, HashMap<U256, Transaction>>>, ErrorObject<'static>>

source

fn inspect( &self ) -> Result<TxPoolResult<HashMap<H160, HashMap<U256, Summary>>>, ErrorObject<'static>>

source

fn status(&self) -> Result<TxPoolResult<U256>, ErrorObject<'static>>

Provided Methods§

source

fn into_rpc(self) -> RpcModule<Self>

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<B, C, A> TxPoolServer for TxPool<B, C, A>
where C: ProvideRuntimeApi<B> + HeaderMetadata<B, Error = Error> + HeaderBackend<B> + Send + Sync + 'static, B: BlockT<Hash = H256> + Send + Sync + 'static, A: ChainApi<Block = B> + 'static, C::Api: TxPoolRuntimeApi<B>,