reth_rpc_api_testing_util::debug

Trait DebugApiExt

Source
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§

Source

type Provider

The provider type that is used to make the requests.

Required Methods§

Source

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.

Source

fn debug_trace_transactions_in_block<B>( &self, block: B, opts: GethDebugTracingOptions, ) -> impl Future<Output = Result<DebugTraceTransactionsStream<'_>, RpcError>> + Send
where B: Into<BlockId> + Send,

Trace all transactions in a block individually with the given tracing opts.

Source

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,

Trace all given blocks with the given tracing opts, returning a stream.

Source

fn debug_trace_call_json( &self, request: TransactionRequest, opts: GethDebugTracingOptions, ) -> impl Future<Output = Result<Value, RpcError>> + Send

method for debug_traceCall

Source

fn debug_trace_call_raw_json( &self, request_json: String, opts_json: String, ) -> impl Future<Output = Result<Value, RpcError>> + Send

method for debug_traceCall using raw JSON strings for the request and options.

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.

Implementors§

Source§

impl<T> DebugApiExt for T
where T: EthApiClient<Transaction, Block, Receipt, Header> + DebugApiClient + Sync,