pub trait TraceApiServer: Sized + Send + Sync + 'static {
    // Required methods
    fn block_traces<'life0, 'async_trait>(
        &'life0 self,
        block_number: BlockNumber
    ) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<LocalizedTrace>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn filter_traces<'life0, 'async_trait>(
        &'life0 self,
        filter: TraceFilter
    ) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<LocalizedTrace>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn transaction_traces<'life0, 'async_trait>(
        &'life0 self,
        tx_hash: H256
    ) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<LocalizedTrace>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

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

Server trait implementation for the TraceApi RPC API.

Required Methods§

source

fn block_traces<'life0, 'async_trait>( &'life0 self, block_number: BlockNumber ) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<LocalizedTrace>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns all traces produced at the given block.

source

fn filter_traces<'life0, 'async_trait>( &'life0 self, filter: TraceFilter ) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<LocalizedTrace>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns all traces matching the provided filter.

source

fn transaction_traces<'life0, 'async_trait>( &'life0 self, tx_hash: H256 ) -> Pin<Box<dyn Future<Output = RpcResult<Option<Vec<LocalizedTrace>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns all traces produced at the given transaction.

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§