pub trait DebugApiExt {
type Provider;
// Required methods
fn debug_trace_transaction_json(
&self,
hash: B256,
opts: GethDebugTracingOptions,
) -> impl Future<Output = Result<Value, RpcError>> + Send;
fn debug_trace_transactions_in_block<B>(
&self,
block: B,
opts: GethDebugTracingOptions,
) -> impl Future<Output = Result<DebugTraceTransactionsStream<'_>, RpcError>> + Send
where B: Into<BlockId> + Send;
fn debug_trace_block_buffered_unordered<I, B>(
&self,
params: I,
opts: Option<GethDebugTracingOptions>,
n: usize,
) -> DebugTraceBlockStream<'_>
where I: IntoIterator<Item = B>,
B: Into<BlockId> + Send;
fn debug_trace_call_json(
&self,
request: TransactionRequest,
opts: GethDebugTracingOptions,
) -> impl Future<Output = Result<Value, RpcError>> + Send;
fn debug_trace_call_raw_json(
&self,
request_json: String,
opts_json: String,
) -> impl Future<Output = Result<Value, RpcError>> + Send;
}
Expand description
An extension trait for the Trace API.
Required Associated Types§
Required Methods§
Sourcefn debug_trace_transaction_json(
&self,
hash: B256,
opts: GethDebugTracingOptions,
) -> impl Future<Output = Result<Value, RpcError>> + Send
fn debug_trace_transaction_json( &self, hash: B256, opts: GethDebugTracingOptions, ) -> impl Future<Output = Result<Value, RpcError>> + Send
Same as DebugApiClient::debug_trace_transaction
but returns the result as json.
Sourcefn debug_trace_transactions_in_block<B>(
&self,
block: B,
opts: GethDebugTracingOptions,
) -> impl Future<Output = Result<DebugTraceTransactionsStream<'_>, RpcError>> + Send
fn debug_trace_transactions_in_block<B>( &self, block: B, opts: GethDebugTracingOptions, ) -> impl Future<Output = Result<DebugTraceTransactionsStream<'_>, RpcError>> + Send
Trace all transactions in a block individually with the given tracing opts.
Sourcefn debug_trace_block_buffered_unordered<I, B>(
&self,
params: I,
opts: Option<GethDebugTracingOptions>,
n: usize,
) -> DebugTraceBlockStream<'_>
fn debug_trace_block_buffered_unordered<I, B>( &self, params: I, opts: Option<GethDebugTracingOptions>, n: usize, ) -> DebugTraceBlockStream<'_>
Trace all given blocks with the given tracing opts, returning a stream.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.