TriportRPC

eth_getTransactionReceipt

Last updated:

eth_getTransactionReceipt retrieves the receipt produced when a transaction was mined into a block. The receipt is the authoritative record of what actually happened on-chain: whether the transaction succeeded, how much gas it consumed, the logs (events) it emitted, and — when the transaction created a contract — the address of the deployed contract.

Use this method to confirm a transaction's outcome after you have submitted it with eth_sendRawTransaction. A common pattern is to poll this method with the transaction hash until a non-null receipt is returned, then read status to determine success or failure.

The method returns null when the transaction is still pending (not yet mined) or unknown (never seen by the node, or dropped from the mempool). A null result is not an error — it simply means there is no receipt yet. Note that a non-null receipt does not by itself guarantee finality; for high-value flows, wait for a sufficient number of block confirmations after the receipt appears.

Parameters

This method takes no parameters.

Returns

eth_getTransactionReceipt return value
FieldType
resultobject

Examples

curl https://triport.io/eth \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"id":1,"method":"eth_getTransactionReceipt","params":[],"jsonrpc":"2.0"}'
const res = await fetch("https://triport.io/eth", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "id": 1,
  "method": "eth_getTransactionReceipt",
  "params": [],
  "jsonrpc": "2.0"
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/eth",
    headers={"Authorization": "Bearer <api-key>"},
    json={"id":1,"method":"eth_getTransactionReceipt","params":[],"jsonrpc":"2.0"},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Networks: mainnet.
  3. Credit cost: 1 per call.

FAQ

What does eth_getTransactionReceipt do?
Returns the receipt of a transaction by its hash — including execution status, gas used, emitted logs, and (for contract deployments) the new contract address.
How many credits does eth_getTransactionReceipt cost?
eth_getTransactionReceipt costs 1 credit(s) per call on Triport by default.
Is eth_getTransactionReceipt available over WebSocket?
eth_getTransactionReceipt is an HTTP JSON-RPC method.