RPC method

eth_getTransactionReceipt on Story

Supported on SwiftNodes

Everything below was measured on 2026-11-29 by calling eth_getTransactionReceipt on Story through the same endpoint customers use, and is re-measured weekly.

What eth_getTransactionReceipt does

Returns the outcome of a mined transaction: status (1 success, 0 reverted), gas used, the effective gas price, the logs it emitted and any contract it created. It returns null until the transaction is in a block.

eth_getTransactionReceipt on Story: what we measured

Fields14
Receipt for an unknown hashnull
Size of the sample receipt15.7 KB

Reading the fee and fields

The fee is gasUsed × effectiveGasPrice, the same as on Ethereum: Story receipts carry no separate L1 or data fee field.

A hash the node has not seen returns null, not an error, so poll until it is non-null (viem's waitForTransactionReceipt does this) and give up after a timeout.

A real Story receipt

As our endpoint returned it; logs collapsed to a count and long hex values shortened.

{
  "blockHash": "0x708c57858ac9a71a0dd8b40e15817cac95925f515604f22cefa3e3cb8d10bd71",
  "blockNumber": "0x17f7547",
  "contractAddress": null,
  "cumulativeGasUsed": "0x38b451",
  "effectiveGasPrice": "0x9ae6a3808",
  "from": "0x99b79f66cc1e70cdfbaa293837919f06b8741647",
  "gasUsed": "0x38b451",
  "logs": "30 logs",
  "logsBloom": "0x0004000000048000…(256 bytes)",
  "status": "0x1",
  "to": "0x91d91a40e6309b59e470ba0945fd2f920f96bd24",
  "transactionHash": "0x075eaed6e18eb148dc59785439511a6cc137a10e68e4c7bc8c5f9ccc7c7e219b",
  "transactionIndex": "0x0",
  "type": "0x2"
}

Example request

curl -s https://rpc.swiftnodes.io/rpc/story?key=YOUR_API_KEY \
  -X POST -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_getTransactionReceipt","params":["0x075eaed6e18eb148dc59785439511a6cc137a10e68e4c7bc8c5f9ccc7c7e219b"]}'
import { createPublicClient, http } from "viem";

const client = createPublicClient({
  transport: http("https://rpc.swiftnodes.io/rpc/story?key=YOUR_API_KEY"),
});

const receipt = await client.waitForTransactionReceipt({ hash, timeout: 60_000 });
if (receipt.status !== "success") throw new Error("reverted");

const total = receipt.gasUsed * receipt.effectiveGasPrice;

Other methods on Story

eth_getTransactionReceipt on other chains

Frequently asked questions

Does Story support eth_getTransactionReceipt?

Yes. eth_getTransactionReceipt answered on the SwiftNodes Story endpoint when our weekly probe called it through the customer path (2026-11-29).

How do I get the total fee of a transaction on Story?

gasUsed × effectiveGasPrice from the receipt.

Why is the Story receipt null?

The transaction is not in a block yet, or the hash is unknown to the node. Keep polling with a timeout.

Story endpoints, live block height and WebSocket status are on the Story RPC page.

One key covers every chain we serve, and SwiftNodes has a free tier.