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

Contents

trace_filter RPC method

Parameters:

  1. Object - The filter object

    fromBlock - (optional) Quantity or Tag From this block.

    toBlock - (optional) Quantity or Tag To this block.

    fromAddress - (optional) Array Addresses of the Senders.

    toAddress - (optional) Address Addresses of the Receivers.

    after - (optional) Quantity The offset trace number.

    count - (optional) Quantity Integer number of traces to display in a batch.

    Returns:

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

    Action - ParityTrace Object, which has the following fields:

    TraceAddress - Array.

    CallType - String.

    IncludeInTrace - Boolean.

    IsPrecomplied - Boolean.

    Type - String.

    CreationMethod - String.

    From - Address.

    To - Address.

    Gas - Quantity.

    Value - Quantity.

    Input - Data.

    Result - ParityTraceResult object which has the following fields:

    GasUsed - Quantity

    Output - Data

    Address - Address

    Code - Data

    Subtraces - Array.

    Author - Address.

    RewardType - String.

    Error - String.

    BlockHash - String of the block hash.

    BlockNumber - Quantity.

    Result - ParityTraceResult object which has the following fields:

    GasUsed - Quantity

    Output - Data

    Address - Address

    Code - Data

    Subtraces - Quantity.

    TraceAddress - Array.

    TransactionHash - Hash.

    TransactionPosition - Quantity.

    Type - String.

    Error - String.

Code Examples:

from web3 import HTTPProvider

client = HTTPProvider('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/')
result = client.make_request('trace_filter', [{
    "fromBlock": "0xccb943",
    "toBlock": "latest",
    "fromAddress": ['0xEdC763b3e418cD14767b3Be02b667619a6374076'],
}])
print(result)
Ready to try QuickNode? Start your 7-day free trial