Trait cfx_rpc_eth_api::TraceApiServer
source · 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§
sourcefn 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 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.
Provided Methods§
Object Safety§
This trait is not object safe.