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

Contents

debug_traceBlockByNumber 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.

Parameters:

  1. Quantity or Tag - Integer block number, or the string 'latest', 'earliest' or 'pending', see the default block parameter.

Returns:

  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:

curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \
 -X POST \
 -H "Content-Type: application/json" \
 --data '{"method":"debug_traceBlockByNumber","params":["0xccde12", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'
Ready to get started? Create a free account