EVM
eth_getTransactionReceipt
Summary: Get transaction receipt by hash
This request returns the receipt of a transaction by transaction hash. Receipts for pending transactions aren't available.
Parameters
transactionHash string
requiredA string representing the hash (32 bytes) of a transaction.
Pattern: ^0x[0-9a-f]{64}$
Returns
A transaction receipt object, or
null
when no receipt was found.
eth_getTransactionReceiptResponse oneOf
Customize request
Parameter
Value
Request
CURL
curl https://linea-mainnet.infura.io/v3/<YOUR-API-KEY> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": ["0x1ecac319d356e2bd78262dc9efddb6b048f33e4c706f356d72768f87c5fc0753"],
"id": 1
}'
Example response
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"blockHash": "0x3ff53efeec688238a8ecc0a1404221d1be3723aa6531f12f4d635dc8e7824779",
"blockNumber": "0x49b95c",
"contractAddress": null,
"cumulativeGasUsed": "0xadcd6",
"effectiveGasPrice": "0x3ba1f2a",
"from": "0x188e0b45cedd8f5e425e73c8aa7953b92115ec24",
"gasUsed": "0x21950",
"logs": [
{
"address": "0xef4fb24ad0916217251f553c0596f8edc630eb66",
"blockHash": "0x3ff53efeec688238a8ecc0a1404221d1be3723aa6531f12f4d635dc8e7824779",
"blockNumber": "0x49b95c",
"data": "0x00000000000000000000000000000000000000000000000000000000000000e0a0...",
"logIndex": "0x14",
"removed": false,
"topics": [
"0xfc8703fd57380f9dd234a89dce51333782d49c5902f307b02f03e014d18fe471"
],
"transactionHash": "0x1ecac319d356e2bd78262dc9efddb6b048f33e4c706f356d72768f87c5fc0753",
"transactionIndex": "0x8"
}
],
"logsBloom": "0x000000000000000000000000000000000000000000000000000000000000000000...",
"status": "0x1",
"to": "0xef4fb24ad0916217251f553c0596f8edc630eb66",
"transactionHash": "0x1ecac319d356e2bd78262dc9efddb6b048f33e4c706f356d72768f87c5fc0753",
"transactionIndex": "0x8",
"type": "0x0"
}
}