trace_filter
curl --request POST \
--url https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "trace_filter",
"params": [
{
"fromBlock": "0x1c69aef",
"toBlock": "0x1c69aef"
}
]
}
'import requests
url = "https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/"
payload = {
"id": 1,
"jsonrpc": "2.0",
"method": "trace_filter",
"params": [
{
"fromBlock": "0x1c69aef",
"toBlock": "0x1c69aef"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: 1,
jsonrpc: '2.0',
method: 'trace_filter',
params: [{fromBlock: '0x1c69aef', toBlock: '0x1c69aef'}]
})
};
fetch('https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => 1,
'jsonrpc' => '2.0',
'method' => 'trace_filter',
'params' => [
[
'fromBlock' => '0x1c69aef',
'toBlock' => '0x1c69aef'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/"
payload := strings.NewReader("{\n \"id\": 1,\n \"jsonrpc\": \"2.0\",\n \"method\": \"trace_filter\",\n \"params\": [\n {\n \"fromBlock\": \"0x1c69aef\",\n \"toBlock\": \"0x1c69aef\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/")
.header("Content-Type", "application/json")
.body("{\n \"id\": 1,\n \"jsonrpc\": \"2.0\",\n \"method\": \"trace_filter\",\n \"params\": [\n {\n \"fromBlock\": \"0x1c69aef\",\n \"toBlock\": \"0x1c69aef\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 1,\n \"jsonrpc\": \"2.0\",\n \"method\": \"trace_filter\",\n \"params\": [\n {\n \"fromBlock\": \"0x1c69aef\",\n \"toBlock\": \"0x1c69aef\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"action": {
"from": "0x05756f67f5f6f4d3c798749a3c28b050dcd9aa99",
"callType": "call",
"gas": "0xee7b4",
"input": "0x33f23865300b6571a26fd52c350bf33577c1107fdc30555d44eaa2b2602fbe5f878eb5ff00000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db410000000000000000000000003600000000000000000000000000000000000000000000000000000000000000171a4217b86a807a64eb94757db6849fb4bdbaa0000000000000000000000000000000000000000000000000000000001a497ae7000000000000000000000000000000000000000000000000000000000008e9f1000000000000000000000000000000000000001b798a1cb4651f0000000000000000000000000000000000000000000000000000000000000000000001c69af0",
"to": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x2415d",
"output": "0x000000000000000000000000000000000000000000000000000000001a497ae7000000000000000000000000000000000000000000000000000000000008ea0f"
},
"subtraces": 7,
"traceAddress": [],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "staticcall",
"gas": "0xe8f6a",
"input": "0x0dfe1681",
"to": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x10a",
"output": "0x000000000000000000000000171a4217b86a807a64eb94757db6849fb4bdbaa0"
},
"subtraces": 0,
"traceAddress": [
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "staticcall",
"gas": "0xe8c21",
"input": "0xd21220a7",
"to": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x134",
"output": "0x0000000000000000000000003600000000000000000000000000000000000000"
},
"subtraces": 0,
"traceAddress": [
1
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "staticcall",
"gas": "0xe7c2f",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0x3600000000000000000000000000000000000000",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x1ec4",
"output": "0x0000000000000000000000000000000000000000000000000000000096d646b2"
},
"subtraces": 1,
"traceAddress": [
2
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x3600000000000000000000000000000000000000",
"callType": "delegatecall",
"gas": "0xe26bb",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0xc6ad664ac6679f4ce74e10e91449c93ec1ae3ca6",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x2a7",
"output": "0x0000000000000000000000000000000000000000000000000000000096d646b2"
},
"subtraces": 0,
"traceAddress": [
2,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "staticcall",
"gas": "0xe5239",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x2616",
"output": "0x0000000000000000000000000000000000000000000000000000000000000000"
},
"subtraces": 1,
"traceAddress": [
3
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
"callType": "delegatecall",
"gas": "0xdfd6c",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0xc6061272419bb754a6c0386d1df81ddb3fe5cf3c",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x9f9",
"output": "0x0000000000000000000000000000000000000000000000000000000000000000"
},
"subtraces": 0,
"traceAddress": [
3,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "call",
"gas": "0xe23a9",
"input": "0x128acb0800000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e23955930000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a497ae7000000000000000000000000000000000000001b798a1cb4651f00000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000",
"to": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x192f1",
"output": "0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffff715f1000000000000000000000000000000000000000000000000000000001a497ae7"
},
"subtraces": 4,
"traceAddress": [
4
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"callType": "call",
"gas": "0xd5446",
"input": "0xa9059cbb00000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593000000000000000000000000000000000000000000000000000000000008ea0f",
"to": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x7d3f",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 1,
"traceAddress": [
4,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
"callType": "delegatecall",
"gas": "0xd1c6d",
"input": "0xa9059cbb00000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593000000000000000000000000000000000000000000000000000000000008ea0f",
"to": "0xc6061272419bb754a6c0386d1df81ddb3fe5cf3c",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x7a83",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 0,
"traceAddress": [
4,
0,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"callType": "staticcall",
"gas": "0xcd596",
"input": "0x70a0823100000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41",
"to": "0x3600000000000000000000000000000000000000",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x560",
"output": "0x000000000000000000000000000000000000000000000000000004f52d7e6a4a"
},
"subtraces": 1,
"traceAddress": [
4,
1
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x3600000000000000000000000000000000000000",
"callType": "delegatecall",
"gas": "0xc9fba",
"input": "0x70a0823100000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41",
"to": "0xc6ad664ac6679f4ce74e10e91449c93ec1ae3ca6",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x2a7",
"output": "0x000000000000000000000000000000000000000000000000000004f52d7e6a4a"
},
"subtraces": 0,
"traceAddress": [
4,
1,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"callType": "call",
"gas": "0xccd5a",
"input": "0xfa461e33fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff715f1000000000000000000000000000000000000000000000000000000001a497ae700000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000",
"to": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x5a4a",
"output": "0x"
},
"subtraces": 1,
"traceAddress": [
4,
2
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "call",
"gas": "0xc90ea",
"input": "0xa9059cbb00000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41000000000000000000000000000000000000000000000000000000001a497ae7",
"to": "0x3600000000000000000000000000000000000000",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x4f82",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 1,
"traceAddress": [
4,
2,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x3600000000000000000000000000000000000000",
"callType": "delegatecall",
"gas": "0xc5c1e",
"input": "0xa9059cbb00000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41000000000000000000000000000000000000000000000000000000001a497ae7",
"to": "0xc6ad664ac6679f4ce74e10e91449c93ec1ae3ca6",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x4cc6",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 1,
"traceAddress": [
4,
2,
0,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x3600000000000000000000000000000000000000",
"callType": "call",
"gas": "0xc14c8",
"input": "0xbeabacc800000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e239559300000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41000000000000000000000000000000000000000000000017e86d2e201a917000",
"to": "0x1800000000000000000000000000000000000000",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x2eb4",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 0,
"traceAddress": [
4,
2,
0,
0,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"callType": "staticcall",
"gas": "0xc7201",
"input": "0x70a0823100000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41",
"to": "0x3600000000000000000000000000000000000000",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x560",
"output": "0x000000000000000000000000000000000000000000000000000004f547c7e531"
},
"subtraces": 1,
"traceAddress": [
4,
3
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x3600000000000000000000000000000000000000",
"callType": "delegatecall",
"gas": "0xc3db4",
"input": "0x70a0823100000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41",
"to": "0xc6ad664ac6679f4ce74e10e91449c93ec1ae3ca6",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x2a7",
"output": "0x000000000000000000000000000000000000000000000000000004f547c7e531"
},
"subtraces": 0,
"traceAddress": [
4,
3,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "staticcall",
"gas": "0xc94d9",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0x3600000000000000000000000000000000000000",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x560",
"output": "0x000000000000000000000000000000000000000000000000000000007c8ccbcb"
},
"subtraces": 1,
"traceAddress": [
5
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x3600000000000000000000000000000000000000",
"callType": "delegatecall",
"gas": "0xc6000",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0xc6ad664ac6679f4ce74e10e91449c93ec1ae3ca6",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x2a7",
"output": "0x000000000000000000000000000000000000000000000000000000007c8ccbcb"
},
"subtraces": 0,
"traceAddress": [
5,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "staticcall",
"gas": "0xc8d80",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x4e2",
"output": "0x000000000000000000000000000000000000000000000000000000000008ea0f"
},
"subtraces": 1,
"traceAddress": [
6
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
"callType": "delegatecall",
"gas": "0xc58c5",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0xc6061272419bb754a6c0386d1df81ddb3fe5cf3c",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x229",
"output": "0x000000000000000000000000000000000000000000000000000000000008ea0f"
},
"subtraces": 0,
"traceAddress": [
6,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
}
]
}Arc node API
trace_filter | Arc
Arc API method that returns execution traces matching specific filter criteria. Available on Arc via Chainstack JSON-RPC nodes.
POST
/
trace_filter
curl --request POST \
--url https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "trace_filter",
"params": [
{
"fromBlock": "0x1c69aef",
"toBlock": "0x1c69aef"
}
]
}
'import requests
url = "https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/"
payload = {
"id": 1,
"jsonrpc": "2.0",
"method": "trace_filter",
"params": [
{
"fromBlock": "0x1c69aef",
"toBlock": "0x1c69aef"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: 1,
jsonrpc: '2.0',
method: 'trace_filter',
params: [{fromBlock: '0x1c69aef', toBlock: '0x1c69aef'}]
})
};
fetch('https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => 1,
'jsonrpc' => '2.0',
'method' => 'trace_filter',
'params' => [
[
'fromBlock' => '0x1c69aef',
'toBlock' => '0x1c69aef'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/"
payload := strings.NewReader("{\n \"id\": 1,\n \"jsonrpc\": \"2.0\",\n \"method\": \"trace_filter\",\n \"params\": [\n {\n \"fromBlock\": \"0x1c69aef\",\n \"toBlock\": \"0x1c69aef\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/")
.header("Content-Type", "application/json")
.body("{\n \"id\": 1,\n \"jsonrpc\": \"2.0\",\n \"method\": \"trace_filter\",\n \"params\": [\n {\n \"fromBlock\": \"0x1c69aef\",\n \"toBlock\": \"0x1c69aef\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": 1,\n \"jsonrpc\": \"2.0\",\n \"method\": \"trace_filter\",\n \"params\": [\n {\n \"fromBlock\": \"0x1c69aef\",\n \"toBlock\": \"0x1c69aef\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"action": {
"from": "0x05756f67f5f6f4d3c798749a3c28b050dcd9aa99",
"callType": "call",
"gas": "0xee7b4",
"input": "0x33f23865300b6571a26fd52c350bf33577c1107fdc30555d44eaa2b2602fbe5f878eb5ff00000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db410000000000000000000000003600000000000000000000000000000000000000000000000000000000000000171a4217b86a807a64eb94757db6849fb4bdbaa0000000000000000000000000000000000000000000000000000000001a497ae7000000000000000000000000000000000000000000000000000000000008e9f1000000000000000000000000000000000000001b798a1cb4651f0000000000000000000000000000000000000000000000000000000000000000000001c69af0",
"to": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x2415d",
"output": "0x000000000000000000000000000000000000000000000000000000001a497ae7000000000000000000000000000000000000000000000000000000000008ea0f"
},
"subtraces": 7,
"traceAddress": [],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "staticcall",
"gas": "0xe8f6a",
"input": "0x0dfe1681",
"to": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x10a",
"output": "0x000000000000000000000000171a4217b86a807a64eb94757db6849fb4bdbaa0"
},
"subtraces": 0,
"traceAddress": [
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "staticcall",
"gas": "0xe8c21",
"input": "0xd21220a7",
"to": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x134",
"output": "0x0000000000000000000000003600000000000000000000000000000000000000"
},
"subtraces": 0,
"traceAddress": [
1
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "staticcall",
"gas": "0xe7c2f",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0x3600000000000000000000000000000000000000",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x1ec4",
"output": "0x0000000000000000000000000000000000000000000000000000000096d646b2"
},
"subtraces": 1,
"traceAddress": [
2
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x3600000000000000000000000000000000000000",
"callType": "delegatecall",
"gas": "0xe26bb",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0xc6ad664ac6679f4ce74e10e91449c93ec1ae3ca6",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x2a7",
"output": "0x0000000000000000000000000000000000000000000000000000000096d646b2"
},
"subtraces": 0,
"traceAddress": [
2,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "staticcall",
"gas": "0xe5239",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x2616",
"output": "0x0000000000000000000000000000000000000000000000000000000000000000"
},
"subtraces": 1,
"traceAddress": [
3
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
"callType": "delegatecall",
"gas": "0xdfd6c",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0xc6061272419bb754a6c0386d1df81ddb3fe5cf3c",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x9f9",
"output": "0x0000000000000000000000000000000000000000000000000000000000000000"
},
"subtraces": 0,
"traceAddress": [
3,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "call",
"gas": "0xe23a9",
"input": "0x128acb0800000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e23955930000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a497ae7000000000000000000000000000000000000001b798a1cb4651f00000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000",
"to": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x192f1",
"output": "0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffff715f1000000000000000000000000000000000000000000000000000000001a497ae7"
},
"subtraces": 4,
"traceAddress": [
4
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"callType": "call",
"gas": "0xd5446",
"input": "0xa9059cbb00000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593000000000000000000000000000000000000000000000000000000000008ea0f",
"to": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x7d3f",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 1,
"traceAddress": [
4,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
"callType": "delegatecall",
"gas": "0xd1c6d",
"input": "0xa9059cbb00000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593000000000000000000000000000000000000000000000000000000000008ea0f",
"to": "0xc6061272419bb754a6c0386d1df81ddb3fe5cf3c",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x7a83",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 0,
"traceAddress": [
4,
0,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"callType": "staticcall",
"gas": "0xcd596",
"input": "0x70a0823100000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41",
"to": "0x3600000000000000000000000000000000000000",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x560",
"output": "0x000000000000000000000000000000000000000000000000000004f52d7e6a4a"
},
"subtraces": 1,
"traceAddress": [
4,
1
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x3600000000000000000000000000000000000000",
"callType": "delegatecall",
"gas": "0xc9fba",
"input": "0x70a0823100000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41",
"to": "0xc6ad664ac6679f4ce74e10e91449c93ec1ae3ca6",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x2a7",
"output": "0x000000000000000000000000000000000000000000000000000004f52d7e6a4a"
},
"subtraces": 0,
"traceAddress": [
4,
1,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"callType": "call",
"gas": "0xccd5a",
"input": "0xfa461e33fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff715f1000000000000000000000000000000000000000000000000000000001a497ae700000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000",
"to": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x5a4a",
"output": "0x"
},
"subtraces": 1,
"traceAddress": [
4,
2
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "call",
"gas": "0xc90ea",
"input": "0xa9059cbb00000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41000000000000000000000000000000000000000000000000000000001a497ae7",
"to": "0x3600000000000000000000000000000000000000",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x4f82",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 1,
"traceAddress": [
4,
2,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x3600000000000000000000000000000000000000",
"callType": "delegatecall",
"gas": "0xc5c1e",
"input": "0xa9059cbb00000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41000000000000000000000000000000000000000000000000000000001a497ae7",
"to": "0xc6ad664ac6679f4ce74e10e91449c93ec1ae3ca6",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x4cc6",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 1,
"traceAddress": [
4,
2,
0,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x3600000000000000000000000000000000000000",
"callType": "call",
"gas": "0xc14c8",
"input": "0xbeabacc800000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e239559300000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41000000000000000000000000000000000000000000000017e86d2e201a917000",
"to": "0x1800000000000000000000000000000000000000",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x2eb4",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
"subtraces": 0,
"traceAddress": [
4,
2,
0,
0,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"callType": "staticcall",
"gas": "0xc7201",
"input": "0x70a0823100000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41",
"to": "0x3600000000000000000000000000000000000000",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x560",
"output": "0x000000000000000000000000000000000000000000000000000004f547c7e531"
},
"subtraces": 1,
"traceAddress": [
4,
3
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x3600000000000000000000000000000000000000",
"callType": "delegatecall",
"gas": "0xc3db4",
"input": "0x70a0823100000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41",
"to": "0xc6ad664ac6679f4ce74e10e91449c93ec1ae3ca6",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x2a7",
"output": "0x000000000000000000000000000000000000000000000000000004f547c7e531"
},
"subtraces": 0,
"traceAddress": [
4,
3,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "staticcall",
"gas": "0xc94d9",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0x3600000000000000000000000000000000000000",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x560",
"output": "0x000000000000000000000000000000000000000000000000000000007c8ccbcb"
},
"subtraces": 1,
"traceAddress": [
5
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x3600000000000000000000000000000000000000",
"callType": "delegatecall",
"gas": "0xc6000",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0xc6ad664ac6679f4ce74e10e91449c93ec1ae3ca6",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x2a7",
"output": "0x000000000000000000000000000000000000000000000000000000007c8ccbcb"
},
"subtraces": 0,
"traceAddress": [
5,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"callType": "staticcall",
"gas": "0xc8d80",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x4e2",
"output": "0x000000000000000000000000000000000000000000000000000000000008ea0f"
},
"subtraces": 1,
"traceAddress": [
6
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
},
{
"action": {
"from": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
"callType": "delegatecall",
"gas": "0xc58c5",
"input": "0x70a0823100000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"to": "0xc6061272419bb754a6c0386d1df81ddb3fe5cf3c",
"value": "0x0"
},
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": 29793007,
"result": {
"gasUsed": "0x229",
"output": "0x000000000000000000000000000000000000000000000000000000000008ea0f"
},
"subtraces": 0,
"traceAddress": [
6,
0
],
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionPosition": 0,
"type": "call"
}
]
}Arc API method that returns execution traces matching specific filter criteria. This is useful for finding all interactions with a specific contract or address across multiple blocks.
The following example finds all calls to the USDC token contract:
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
filterObject— the filter object:fromBlock— (optional) starting block number (hex)toBlock— (optional) ending block number (hex)fromAddress— (optional) array of sender addresses to filtertoAddress— (optional) array of recipient addresses to filterafter— (optional) offset for paginationcount— (optional) maximum number of traces to return
Response
result— array of trace objects matching the filter:action— the action object:from— sender addressto— recipient addresscallType— type of callgas— gas providedinput— call datavalue— value transferred
blockHash— hash of the blockblockNumber— block numberresult— the result objectsubtraces— number of child tracestraceAddress— position in the trace treetransactionHash— hash of the transactiontransactionPosition— index in the blocktype— trace type
trace_filter code examples
The following example finds all calls to the USDC token contract:
const ethers = require('ethers');
const NODE_URL = "CHAINSTACK_NODE_URL";
const provider = new ethers.JsonRpcProvider(NODE_URL);
// USDC token address
const USDC = "0x3600000000000000000000000000000000000000";
const traceFilter = async () => {
const currentBlock = await provider.getBlockNumber();
const fromBlock = "0x" + (currentBlock - 1000).toString(16);
const toBlock = "0x" + currentBlock.toString(16);
const traces = await provider.send("trace_filter", [{
fromBlock: fromBlock,
toBlock: toBlock,
toAddress: [USDC],
count: 20
}]);
console.log(`Found ${traces.length} traces to USDC`);
for (const trace of traces) {
console.log(`Block ${trace.blockNumber}: ${trace.action.from} -> ${trace.action.to}`);
console.log(` Call type: ${trace.action.callType}`);
console.log(` Tx: ${trace.transactionHash}`);
}
};
traceFilter();
from web3 import Web3
node_url = "CHAINSTACK_NODE_URL"
web3 = Web3(Web3.HTTPProvider(node_url))
# USDC token address
USDC = "0x3600000000000000000000000000000000000000"
current_block = web3.eth.block_number
from_block = hex(current_block - 1000)
to_block = hex(current_block)
result = web3.provider.make_request("trace_filter", [{
"fromBlock": from_block,
"toBlock": to_block,
"toAddress": [USDC],
"count": 20
}])
traces = result['result']
print(f"Found {len(traces)} traces to USDC")
for trace in traces:
print(f"Block {trace['blockNumber']}: {trace['action']['from']} -> {trace['action']['to']}")
print(f" Call type: {trace['action']['callType']}")
print(f" Tx: {trace['transactionHash']}")
curl -X POST "CHAINSTACK_NODE_URL" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "trace_filter",
"params": [{
"fromBlock": "0x564000",
"toBlock": "0x565000",
"toAddress": ["0x3600000000000000000000000000000000000000"],
"count": 20
}],
"id": 1
}'
Last modified on September 16, 2026
Was this page helpful?