Parameters:
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:
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:
require 'ethereum.rb' client = Ethereum::HttpClient.new('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/') trace = client.send_command('trace_filter', [{ "fromBlock": "0xccb943", "toBlock": "latest", "fromAddress": ['0xEdC763b3e418cD14767b3Be02b667619a6374076'], }]) puts trace["result"]
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)
const ethers = require("ethers"); (async () => { const provider = new ethers.providers.JsonRpcProvider("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/"); const trace = await provider.send("trace_filter", [ { "fromBlock": "0xccb943", "toBlock": "latest", "fromAddress": ["0xEdC763b3e418cD14767b3Be02b667619a6374076"], }, ]); console.log(trace); })();
curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"trace_filter","params":[{"fromBlock":"0xccb943","toBlock":"latest","fromAddress":["0xEdC763b3e418cD14767b3Be02b667619a6374076"]}],"id":1,"jsonrpc":"2.0"}'