TriportRPC

eth_getTransactionReceipt

BNB Smart Chain / https://triport.io/rpc/bsc

Minimum tier: Free

BNB Smart Chain method guide

Last updated:

eth_getTransactionReceipt returns the execution receipt for a BNB Smart Chain transaction hash, or null when no receipt is available.

Use it after mining to inspect status, gas usage, effective gas price, logs, and a created contract address. Receipt quantities and byte fields use standard EVM JSON-RPC encodings.

Unlike eth_getTransactionByHash, this method describes execution outcome rather than the submitted transaction. It is read-only; raw transaction submission is not exposed for BSC.

Parameters

eth_getTransactionReceipt parameters
NameTypeRequiredDescription
transactionHashHashYes

Returns

eth_getTransactionReceipt return value
FieldType
receiptReceiptOrNull

Examples

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

Usage

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

FAQ

What does eth_getTransactionReceipt do?
Return a transaction receipt by hash.
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.