Trait cfx_rpc_eth_api::DebugApiServer
source · pub trait DebugApiServer: Sized + Send + Sync + 'static {
// Required methods
fn db_get<'life0, 'async_trait>(
&'life0 self,
key: String
) -> Pin<Box<dyn Future<Output = RpcResult<Option<String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn debug_trace_transaction<'life0, 'async_trait>(
&'life0 self,
tx_hash: H256,
opts: Option<GethDebugTracingOptions>
) -> Pin<Box<dyn Future<Output = RpcResult<GethTrace>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn debug_trace_block_by_hash<'life0, 'async_trait>(
&'life0 self,
block: H256,
opts: Option<GethDebugTracingOptions>
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<TraceResult>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn debug_trace_block_by_number<'life0, 'async_trait>(
&'life0 self,
block: BlockNumber,
opts: Option<GethDebugTracingOptions>
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<TraceResult>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn debug_trace_call<'life0, 'async_trait>(
&'life0 self,
request: TransactionRequest,
block_number: Option<BlockNumber>,
opts: Option<GethDebugTracingCallOptions>
) -> Pin<Box<dyn Future<Output = RpcResult<GethTrace>> + 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 DebugApi
RPC API.
Required Methods§
fn db_get<'life0, 'async_trait>(
&'life0 self,
key: String
) -> Pin<Box<dyn Future<Output = RpcResult<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
sourcefn debug_trace_transaction<'life0, 'async_trait>(
&'life0 self,
tx_hash: H256,
opts: Option<GethDebugTracingOptions>
) -> Pin<Box<dyn Future<Output = RpcResult<GethTrace>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn debug_trace_transaction<'life0, 'async_trait>(
&'life0 self,
tx_hash: H256,
opts: Option<GethDebugTracingOptions>
) -> Pin<Box<dyn Future<Output = RpcResult<GethTrace>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
The debug_traceTransaction
debugging method will attempt to run the
transaction in the exact same manner as it was executed on the
network. It will replay any transaction that may have been executed
prior to this one before it will finally attempt to execute the
transaction that corresponds to the given hash.
fn debug_trace_block_by_hash<'life0, 'async_trait>(
&'life0 self,
block: H256,
opts: Option<GethDebugTracingOptions>
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<TraceResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn debug_trace_block_by_number<'life0, 'async_trait>(
&'life0 self,
block: BlockNumber,
opts: Option<GethDebugTracingOptions>
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<TraceResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn debug_trace_call<'life0, 'async_trait>(
&'life0 self,
request: TransactionRequest,
block_number: Option<BlockNumber>,
opts: Option<GethDebugTracingCallOptions>
) -> Pin<Box<dyn Future<Output = RpcResult<GethTrace>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
Object Safety§
This trait is not object safe.