RPC method

eth_getTransactionByHash on Core

Supported on SwiftNodes

Everything below was measured on 2026-10-13 by calling eth_getTransactionByHash on Core through the same endpoint customers use, and is re-measured weekly.

What eth_getTransactionByHash does

Returns a transaction by its hash: sender, recipient, value, input data, gas fields and signature, plus the block it was included in. It returns null for a hash the node does not know, and a transaction still in the mempool has a null blockNumber.

Transaction types on Core

Types of the 6 transactions in five consecutive blocks when we measured. Decoders that reject unknown types will fail on Core if any of these is missing from their list.

0x0 legacy6 (100%)

A real Core transaction

A type 0x0 transaction from one of the latest blocks, as our endpoint returned it (long hex values shortened).

{
  "blockHash": "0x85a10514cee5dadacd01b9b48b482b0f74b02f8aa0599cbe6a169654fbac5494",
  "blockNumber": "0x25b2722",
  "from": "0x729f39a54304fcc6ec279684c71491a385d7b9ae",
  "gas": "0x7a120",
  "gasPrice": "0x0",
  "hash": "0x018339f5c0d987805d4d3dcc4402adf39b1b71cd314b2eb5f60aeb0f3efc8aeb",
  "input": "0xf340fa01000000000000000000000000729f39a54304fcc6ec279684c71491a385d7b9ae",
  "nonce": "0x190e9a",
  "to": "0x0000000000000000000000000000000000001000",
  "transactionIndex": "0x0",
  "value": "0x0",
  "type": "0x0",
  "chainId": "0x45c",
  "v": "0x8db",
  "r": "0xffce84a5cbcf4b05029212cbc13f4b1d402e5a13d4b849188913723902beb5e0",
  "s": "0x11a0e4b93306142ba197fd6efa458d584d6c353bcffb5e3753e67fd81fa44f1c"
}

Example request

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

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

const tx = await client.getTransaction({ hash: "0x018339f5c0d987805d4d3dcc4402adf39b1b71cd314b2eb5f60aeb0f3efc8aeb" });
if (tx.blockNumber === null) console.log("still pending");
console.log(tx.type, tx.from, tx.to, tx.value);

Other methods on Core

eth_getTransactionByHash on other chains

Frequently asked questions

Does Core support eth_getTransactionByHash?

Yes. eth_getTransactionByHash answered on the SwiftNodes Core endpoint when our weekly probe called it through the customer path (2026-10-13).

Which transaction types does Core use?

In five recent blocks: 6 × 0x0 (legacy).

Why does eth_getTransactionByHash return null on Core?

The node does not know the hash: it was never broadcast, it was dropped from the mempool, or it was sent to another chain. Check the hash and the chain ID before retrying.

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

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