Register and show off your project at Ethereum QuickPitch and win $10,000. Apply now


debug_traceBlockByHash RPC method

The API credit value for this method is 14 . To learn more about API credits and each method's value, visit the API Credits page.


  1. Hash - Hash of the block to be traced.


  1. Array - Block traces, which have the following object shape (all return types are hexadecimal representations of their data type unless otherwise stated):

    Results - Trace Object, which has the following fields:

    Calls - Array of transactions in the block with the following fields.

    from - Address

    gas - Quantity

    gasUsed - Quantity

    input - Data

    otput - Data

    to - Address

    type - Data

    value - Quantity

Code Examples:

from web3 import Web3, HTTPProvider
provider = Web3.HTTPProvider("")
result = provider.make_request('debug_traceBlockByHash', ['0x97b49e43632ac70c46b4003434058b18db0ad809617bd29f3448d46ca9085576', {'tracer': 'callTracer'}])
Ready to get started? Create a free account