Interface TraceService

All Superinterfaces:
org.hyperledger.besu.plugin.services.BesuService

public interface TraceService extends org.hyperledger.besu.plugin.services.BesuService
The Trace service interface
  • Method Details

    • traceBlock

      BlockTraceResult traceBlock(long blockNumber, BlockAwareOperationTracer tracer)
      Traces a block
      Parameters:
      blockNumber - the block number
      tracer - the tracer (OperationTracer)
      Returns:
      BlockTraceResult the result of the trace
    • traceBlock

      BlockTraceResult traceBlock(org.hyperledger.besu.datatypes.Hash hash, BlockAwareOperationTracer tracer)
      Traces a block by hash
      Parameters:
      hash - the block hash
      tracer - the tracer (OperationTracer)
      Returns:
      BlockTraceResult the result of the trace
    • trace

      void trace(long fromBlockNumber, long toBlockNumber, Consumer<org.hyperledger.besu.evm.worldstate.WorldUpdater> beforeTracing, Consumer<org.hyperledger.besu.evm.worldstate.WorldUpdater> afterTracing, BlockAwareOperationTracer tracer)
      Traces range of blocks
      Parameters:
      fromBlockNumber - the beginning of the range (inclusive)
      toBlockNumber - the end of the range (inclusive)
      beforeTracing - consumer invoked with the world updater of each block before it is traced
      afterTracing - consumer invoked with the world updater of each block after it is traced
      tracer - an instance of OperationTracer