RPC Method debug_traceBlockByHash implementation

  • Parameters

    • thorClient: ThorClient

      The thor client instance to use.

    • params: unknown[]

      The standard array of rpc call parameters. * params[0]: The block hash of block to get. * params[1]: options - object - This describes the options for the trace. It has the following parameters: * tracer - string to specify the type of tracer. Currently, it supports callTracer and prestateTracer. * tracerConfig - Object to specify configurations for the tracer. It has the following parameter: * onlyTopCall - boolean Setting this to true will only trace the main (top-level) call and none of the sub-calls. This avoids extra processing for each call frame if only the top-level call info are required (useful for getting revertReason).

    Returns Promise<{
        result: CallTracerRPC | PrestateTracerRPC;
        txHash: string;
    }[]>