TriportRPC

eth_getTransactionReceipt

Polygon / https://triport.io/polygon

Minimum tier: Free

Polygon method guide

Last updated:

eth_getTransactionReceipt looks up a single transaction by its 32-byte hash and returns the receipt generated when the transaction was executed. The receipt is the authoritative record of what happened: whether the transaction succeeded (status), how much gas it actually consumed (gasUsed, effectiveGasPrice), which logs it emitted, and — for contract-creation transactions — the address of the new contract.

A receipt exists only once the transaction has been mined. While a transaction is still pending in the mempool the method returns "result": null. This is not an error — the JSON-RPC envelope returns HTTP 200 with a null result. Poll the method (Polygon block time is ~2.1s) until a non-null receipt appears to detect confirmation. To read a pending transaction's calldata before it mines, use eth_getTransactionByHash instead.

For batch processing — pulling every receipt in a block at once for an indexer or analytics pipeline — call eth_getBlockReceipts, which returns all receipts for a block in a single round-trip rather than issuing N separate eth_getTransactionReceipt calls.

Parameters

This method takes no parameters.

Returns

eth_getTransactionReceipt return value
FieldType
resultobject

Examples

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

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: Polygon.
  3. Clusters: mainnet.
  4. Credit cost: 1 per call.

FAQ

What does eth_getTransactionReceipt do?
Returns the receipt for a mined Polygon transaction — execution status, gas used, and emitted logs — or null if the transaction has not yet been mined.
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.