RPC method

eth_getTransactionByHash on Morph

Supported on SwiftNodes

Everything below was measured on 2026-10-13 by calling eth_getTransactionByHash on Morph 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 Morph

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

0x0 legacy1 (50%)
0x2 EIP-15591 (50%)

Fields beyond Ethereum's

Transactions include blockTimestamp, so you get the block time without a second call for the block.

A real Morph transaction

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

{
  "blockHash": "0xf7265572187895b519f1b65f918af89d10fe2fa047535056f6f385b61a9c1152",
  "blockNumber": "0x1aeaa39",
  "blockTimestamp": "0x6ace2c4b",
  "from": "0xe27d4cb1759bae0188126bd62d415a6fa528ffe5",
  "gas": "0x25ada",
  "gasPrice": "0x186a00",
  "hash": "0x160819be7f788960c005ffa1b0a39aae4d267348980c4aabeabdb59dc9957665",
  "input": "0x9265bb9d00000000…(708 bytes)",
  "nonce": "0x4f56",
  "to": "0x0c2ebc9ff9383a7cbb81d7fdc24881430c9933b6",
  "transactionIndex": "0x0",
  "value": "0x0",
  "type": "0x0",
  "v": "0x1627",
  "r": "0x6e5abd6dffa40d2c4b1a3b4d504ad3cdd7e05db4cd1dd8bb658a4e36b8e6096d",
  "s": "0x21bb09609efdfdc16c32c61f6cfaaf2e6688738b8d2f03c5381d9c3589d678b0"
}

Example request

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

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

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

Other methods on Morph

eth_getTransactionByHash on other chains

Frequently asked questions

Does Morph support eth_getTransactionByHash?

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

Which transaction types does Morph use?

In five recent blocks: 1 × 0x0 (legacy), 1 × 0x2 (EIP-1559).

Why does eth_getTransactionByHash return null on Morph?

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.

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

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