trace_block
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_block",
"params": [
"0x1c69aef"
]
}
'import requests
url = "https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/"
payload = {
"id": 1,
"jsonrpc": "2.0",
"method": "trace_block",
"params": ["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_block', params: ['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_block',
'params' => [
'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_block\",\n \"params\": [\n \"0x1c69aef\"\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_block\",\n \"params\": [\n \"0x1c69aef\"\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_block\",\n \"params\": [\n \"0x1c69aef\"\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_block | Arc
Arc API method that returns execution traces for all transactions in a block. Reference for trace_block on Arc via Chainstack.
POST
/
trace_block
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_block",
"params": [
"0x1c69aef"
]
}
'import requests
url = "https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/"
payload = {
"id": 1,
"jsonrpc": "2.0",
"method": "trace_block",
"params": ["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_block', params: ['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_block',
'params' => [
'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_block\",\n \"params\": [\n \"0x1c69aef\"\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_block\",\n \"params\": [\n \"0x1c69aef\"\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_block\",\n \"params\": [\n \"0x1c69aef\"\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 for all transactions in a block. This provides detailed call-level traces using the Parity/OpenEthereum trace format.
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
blockParameter— the block number (hex) or tag (latest,earliest,pending)
Response
result— array of trace objects for all transactions in the block:action— the action object:from— sender addressto— recipient addresscallType— type of call (call, delegatecall, staticcall, etc.)gas— gas providedinput— call datavalue— value transferred
blockHash— hash of the blockblockNumber— block numberresult— the result object:gasUsed— gas consumedoutput— return data
subtraces— number of child tracestraceAddress— position in the trace treetransactionHash— hash of the transactiontransactionPosition— index of the transaction in the blocktype— trace type (call, create, suicide, reward)
trace_block code examples
const ethers = require('ethers');
const NODE_URL = "CHAINSTACK_NODE_URL";
const provider = new ethers.JsonRpcProvider(NODE_URL);
const traceBlock = async (blockNumber) => {
const traces = await provider.send("trace_block", [blockNumber]);
console.log(`Block has ${traces.length} traces`);
// Group traces by transaction
const txTraces = {};
for (const trace of traces) {
const txHash = trace.transactionHash;
if (!txTraces[txHash]) {
txTraces[txHash] = [];
}
txTraces[txHash].push(trace);
}
console.log(`Across ${Object.keys(txTraces).length} transactions`);
for (const [txHash, txTrace] of Object.entries(txTraces)) {
console.log(`\nTx: ${txHash}`);
for (const trace of txTrace) {
const indent = " ".repeat(trace.traceAddress.length);
console.log(`${indent}${trace.action.callType}: ${trace.action.from} -> ${trace.action.to}`);
}
}
};
traceBlock("latest");
from web3 import Web3
from collections import defaultdict
node_url = "CHAINSTACK_NODE_URL"
web3 = Web3(Web3.HTTPProvider(node_url))
result = web3.provider.make_request("trace_block", ["latest"])
traces = result['result']
print(f"Block has {len(traces)} traces")
# Group traces by transaction
tx_traces = defaultdict(list)
for trace in traces:
tx_hash = trace['transactionHash']
tx_traces[tx_hash].append(trace)
print(f"Across {len(tx_traces)} transactions")
for tx_hash, tx_trace in tx_traces.items():
print(f"\nTx: {tx_hash}")
for trace in tx_trace:
indent = " " * len(trace['traceAddress'])
call_type = trace['action'].get('callType', trace['type'])
from_addr = trace['action']['from']
to_addr = trace['action'].get('to', 'Contract Creation')
print(f"{indent}{call_type}: {from_addr} -> {to_addr}")
curl -X POST "CHAINSTACK_NODE_URL" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "trace_block",
"params": ["latest"],
"id": 1
}'
Last modified on August 3, 2026
Was this page helpful?