eth_getTransactionReceipt
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_getTransactionReceipt",
"params": [
"0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad"
]
}
'import requests
url = "https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/"
payload = {
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": ["0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad"]
}
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_getTransactionReceipt',
params: ['0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad']
})
};
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_getTransactionReceipt',
'params' => [
'0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad'
]
]),
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_getTransactionReceipt\",\n \"params\": [\n \"0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad\"\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_getTransactionReceipt\",\n \"params\": [\n \"0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad\"\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_getTransactionReceipt\",\n \"params\": [\n \"0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad\"\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_getTransactionReceipt | Arc
Arc API method that returns the receipt of a transaction by transaction hash. Transaction receipts contain information about the execution of a transaction.
POST
/
eth_getTransactionReceipt
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_getTransactionReceipt",
"params": [
"0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad"
]
}
'import requests
url = "https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/"
payload = {
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": ["0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad"]
}
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_getTransactionReceipt',
params: ['0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad']
})
};
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_getTransactionReceipt',
'params' => [
'0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad'
]
]),
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_getTransactionReceipt\",\n \"params\": [\n \"0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad\"\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_getTransactionReceipt\",\n \"params\": [\n \"0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad\"\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_getTransactionReceipt\",\n \"params\": [\n \"0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad\"\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 the receipt of a transaction by transaction hash. Transaction receipts contain information about the execution of a transaction.
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
transactionHash— the hash of the transaction to retrieve the receipt for
Response
result— a receipt object, ornullif no receipt was found:transactionHash— the transaction hashblockHash— hash of the block containing this transactionblockNumber— block number containing this transactionfrom— address of the senderto— address of the receiverstatus—1for success,0for failuregasUsed— amount of gas usedlogs— array of log objectseffectiveGasPrice— the gas price actually paid, in weitype— transaction type:0x0legacy,0x1EIP-2930,0x2EIP-1559, or0x4EIP-7702
eth_getTransactionReceipt code examples
const ethers = require('ethers');
const NODE_URL = "CHAINSTACK_NODE_URL";
const provider = new ethers.JsonRpcProvider(NODE_URL);
const getReceipt = async () => {
const receipt = await provider.getTransactionReceipt("0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad");
console.log(receipt);
};
getReceipt();
from web3 import Web3
node_url = "CHAINSTACK_NODE_URL"
web3 = Web3(Web3.HTTPProvider(node_url))
receipt = web3.eth.get_transaction_receipt("0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad")
print(receipt)
print(f"Effective gas price: {receipt['effectiveGasPrice']}")
curl -X POST "CHAINSTACK_NODE_URL" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0x010237c95a77484f09c3b76b209efd1edd073de7d9cd10c3056b8f51107640ad"], "id": 1}'
Last modified on November 6, 2026
Was this page helpful?