eth_getBlockReceipts
curl --request POST \
--url https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBlockReceipts",
"params": [
"0x1c69aef"
]
}
'import requests
url = "https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/"
payload = {
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBlockReceipts",
"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: 'eth_getBlockReceipts', 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' => 'eth_getBlockReceipts',
'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\": \"eth_getBlockReceipts\",\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\": \"eth_getBlockReceipts\",\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\": \"eth_getBlockReceipts\",\n \"params\": [\n \"0x1c69aef\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"type": "0x2",
"status": "0x1",
"cumulativeGasUsed": "0x29be9",
"logs": [
{
"address": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41",
"0x00000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593"
],
"data": "0x000000000000000000000000000000000000000000000000000000000008ea0f",
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": "0x1c69aef",
"blockTimestamp": "0x6aed6f00",
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionIndex": "0x0",
"logIndex": "0x0",
"removed": false
},
{
"address": "0xfffffffffffffffffffffffffffffffffffffffe",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"0x00000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41"
],
"data": "0x000000000000000000000000000000000000000000000017e86d2e201a917000",
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": "0x1c69aef",
"blockTimestamp": "0x6aed6f00",
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionIndex": "0x0",
"logIndex": "0x1",
"removed": false
},
{
"address": "0x3600000000000000000000000000000000000000",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"0x00000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41"
],
"data": "0x000000000000000000000000000000000000000000000000000000001a497ae7",
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": "0x1c69aef",
"blockTimestamp": "0x6aed6f00",
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionIndex": "0x0",
"logIndex": "0x2",
"removed": false
},
{
"address": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"topics": [
"0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
"0x00000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"0x00000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593"
],
"data": "0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffff715f1000000000000000000000000000000000000000000000000000000001a497ae7000000000000000000000000000000000000001b798a1cb4651f0000000000000000000000000000000000000000000000000000000000000000005db6ce6dba00000000000000000000000000000000000000000000000000000000000102dc",
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": "0x1c69aef",
"blockTimestamp": "0x6aed6f00",
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionIndex": "0x0",
"logIndex": "0x3",
"removed": false
},
{
"address": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"topics": [
"0x1859d0399618b6ed23500d82a27dec0c0ee89b8595fc59ef4a200586d6e7e310",
"0x300b6571a26fd52c350bf33577c1107fdc30555d44eaa2b2602fbe5f878eb5ff",
"0x00000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41"
],
"data": "0x0000000000000000000000003600000000000000000000000000000000000000000000000000000000000000171a4217b86a807a64eb94757db6849fb4bdbaa0000000000000000000000000000000000000000000000000000000001a497ae7000000000000000000000000000000000000000000000000000000000008ea0f",
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": "0x1c69aef",
"blockTimestamp": "0x6aed6f00",
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionIndex": "0x0",
"logIndex": "0x4",
"removed": false
}
],
"logsBloom": "0x00000000000000800000000000000000000000000000000000000004000000000000000000000200000000000000000000000000000020001000000000000000000000000000000800002018000000000100000000000000000000000000000000000000000000002040100010002000000000000000000000000010000800400000000000000000000000000000000000000000000002000010000000010000000000000000000000000000000100000000000000000000000000000000004000000002000000000008000000000082000000800010000400000000000000400000000000000000000000000000000000000000008000000000000000000000",
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionIndex": "0x0",
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": "0x1c69aef",
"gasUsed": "0x29be9",
"effectiveGasPrice": "0x174876e800",
"from": "0x05756f67f5f6f4d3c798749a3c28b050dcd9aa99",
"to": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"contractAddress": null
}
]
}Arc node API
eth_getBlockReceipts | Arc
Arc API method that returns all transaction receipts for a given block. Reference for eth_getBlockReceipts on Arc via Chainstack.
POST
/
eth_getBlockReceipts
curl --request POST \
--url https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBlockReceipts",
"params": [
"0x1c69aef"
]
}
'import requests
url = "https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/"
payload = {
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getBlockReceipts",
"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: 'eth_getBlockReceipts', 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' => 'eth_getBlockReceipts',
'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\": \"eth_getBlockReceipts\",\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\": \"eth_getBlockReceipts\",\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\": \"eth_getBlockReceipts\",\n \"params\": [\n \"0x1c69aef\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"type": "0x2",
"status": "0x1",
"cumulativeGasUsed": "0x29be9",
"logs": [
{
"address": "0x171a4217b86a807a64eb94757db6849fb4bdbaa0",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41",
"0x00000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593"
],
"data": "0x000000000000000000000000000000000000000000000000000000000008ea0f",
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": "0x1c69aef",
"blockTimestamp": "0x6aed6f00",
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionIndex": "0x0",
"logIndex": "0x0",
"removed": false
},
{
"address": "0xfffffffffffffffffffffffffffffffffffffffe",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"0x00000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41"
],
"data": "0x000000000000000000000000000000000000000000000017e86d2e201a917000",
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": "0x1c69aef",
"blockTimestamp": "0x6aed6f00",
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionIndex": "0x0",
"logIndex": "0x1",
"removed": false
},
{
"address": "0x3600000000000000000000000000000000000000",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"0x00000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41"
],
"data": "0x000000000000000000000000000000000000000000000000000000001a497ae7",
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": "0x1c69aef",
"blockTimestamp": "0x6aed6f00",
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionIndex": "0x0",
"logIndex": "0x2",
"removed": false
},
{
"address": "0x82916bee18fcef517b26c72d7cb5f13694e1db41",
"topics": [
"0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67",
"0x00000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593",
"0x00000000000000000000000059940b5885b2e74400cee1e8aec7fdd1e2395593"
],
"data": "0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffff715f1000000000000000000000000000000000000000000000000000000001a497ae7000000000000000000000000000000000000001b798a1cb4651f0000000000000000000000000000000000000000000000000000000000000000005db6ce6dba00000000000000000000000000000000000000000000000000000000000102dc",
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": "0x1c69aef",
"blockTimestamp": "0x6aed6f00",
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionIndex": "0x0",
"logIndex": "0x3",
"removed": false
},
{
"address": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"topics": [
"0x1859d0399618b6ed23500d82a27dec0c0ee89b8595fc59ef4a200586d6e7e310",
"0x300b6571a26fd52c350bf33577c1107fdc30555d44eaa2b2602fbe5f878eb5ff",
"0x00000000000000000000000082916bee18fcef517b26c72d7cb5f13694e1db41"
],
"data": "0x0000000000000000000000003600000000000000000000000000000000000000000000000000000000000000171a4217b86a807a64eb94757db6849fb4bdbaa0000000000000000000000000000000000000000000000000000000001a497ae7000000000000000000000000000000000000000000000000000000000008ea0f",
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": "0x1c69aef",
"blockTimestamp": "0x6aed6f00",
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionIndex": "0x0",
"logIndex": "0x4",
"removed": false
}
],
"logsBloom": "0x00000000000000800000000000000000000000000000000000000004000000000000000000000200000000000000000000000000000020001000000000000000000000000000000800002018000000000100000000000000000000000000000000000000000000002040100010002000000000000000000000000010000800400000000000000000000000000000000000000000000002000010000000010000000000000000000000000000000100000000000000000000000000000000004000000002000000000008000000000082000000800010000400000000000000400000000000000000000000000000000000000000008000000000000000000000",
"transactionHash": "0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad",
"transactionIndex": "0x0",
"blockHash": "0xb27e862c03e649114afd6904bd39f5e4a1ca41fffb92c0bbfe88dd7750b8c9a1",
"blockNumber": "0x1c69aef",
"gasUsed": "0x29be9",
"effectiveGasPrice": "0x174876e800",
"from": "0x05756f67f5f6f4d3c798749a3c28b050dcd9aa99",
"to": "0x59940b5885b2e74400cee1e8aec7fdd1e2395593",
"contractAddress": null
}
]
}Arc API method that returns all transaction receipts for a given block. This is more efficient than fetching receipts individually when you need all receipts from a block.
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 receipt objects for all transactions in the block:transactionHash— hash of the transactiontransactionIndex— index of the transaction in the blockblockHash— hash of the blockblockNumber— block numberfrom— sender addressto— recipient addresscumulativeGasUsed— total gas used in the block up to this transactiongasUsed— gas used by this transactioncontractAddress— contract address if this was a deploymentlogs— array of log objectslogsBloom— bloom filter for logsstatus—0x1for success,0x0for failureeffectiveGasPrice— actual gas price paidtype— transaction type:0x0legacy,0x1EIP-2930,0x2EIP-1559, or0x4EIP-7702
eth_getBlockReceipts code examples
const ethers = require('ethers');
const NODE_URL = "CHAINSTACK_NODE_URL";
const provider = new ethers.JsonRpcProvider(NODE_URL);
const getBlockReceipts = async (blockNumber) => {
const receipts = await provider.send("eth_getBlockReceipts", [blockNumber]);
console.log(`Block ${blockNumber}: ${receipts.length} transactions`);
let totalGasUsed = 0n;
let successCount = 0;
let failCount = 0;
for (const receipt of receipts) {
const gasUsed = BigInt(receipt.gasUsed);
totalGasUsed += gasUsed;
if (receipt.status === "0x1") {
successCount++;
} else {
failCount++;
}
console.log(`\nTx ${receipt.transactionIndex}: ${receipt.transactionHash}`);
console.log(` Status: ${receipt.status === "0x1" ? "Success" : "Failed"}`);
console.log(` Gas Used: ${gasUsed}`);
console.log(` Logs: ${receipt.logs.length}`);
}
console.log(`\n--- Summary ---`);
console.log(`Total transactions: ${receipts.length}`);
console.log(`Successful: ${successCount}, Failed: ${failCount}`);
console.log(`Total gas used: ${totalGasUsed}`);
};
getBlockReceipts("latest");
from web3 import Web3
node_url = "CHAINSTACK_NODE_URL"
web3 = Web3(Web3.HTTPProvider(node_url))
result = web3.provider.make_request("eth_getBlockReceipts", ["latest"])
receipts = result['result']
print(f"Block latest: {len(receipts)} transactions")
total_gas_used = 0
success_count = 0
fail_count = 0
for receipt in receipts:
gas_used = int(receipt['gasUsed'], 16)
total_gas_used += gas_used
if receipt['status'] == "0x1":
success_count += 1
else:
fail_count += 1
print(f"\nTx {receipt['transactionIndex']}: {receipt['transactionHash']}")
print(f" Status: {'Success' if receipt['status'] == '0x1' else 'Failed'}")
print(f" Gas Used: {gas_used}")
print(f" Logs: {len(receipt['logs'])}")
print(f"\n--- Summary ---")
print(f"Total transactions: {len(receipts)}")
print(f"Successful: {success_count}, Failed: {fail_count}")
print(f"Total gas used: {total_gas_used}")
curl -X POST "CHAINSTACK_NODE_URL" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}'
Last modified on September 16, 2026
Was this page helpful?