🚀 We’re excited to announce our $35m Series A led by Tiger Global: Press Release, Coindesk, Bloomberg, Business Insider & RefreshMiami!


debug_traceBlockByNumber RPC method


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


  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("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/")
result = provider.make_request('debug_traceBlockByNumber', ['0xccde12', {'tracer': 'callTracer'}])
Ready to try QuickNode? Start your 7-day free trial