Trait reth_rpc_api_testing_util::debug::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.

Object Safety§

This trait is not object safe.

Implementors§

source§

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