For the complete documentation index, see llms.txt. This page is also available as Markdown.

eth_getTransactionByHash

post
/

Returns details about a transaction for a given transaction hash.

The RPC will check if the transaction is on chain, in the public mempool, or if it exists in our private mempool.

If the transaction is returned from our private mempool the signatures (the v, r, s components) and gas price will be stripped from the result.

Query parameters
api_keystringRequiredExample: docs-demo
Body
stringOptionalPattern: ^0x[a-fA-F0-9]{64}$
Responses
200Success
application/json
or
or
or
post/
POST /?api_key=text HTTP/1.1
Host: eth.novarpc.xyz
Content-Type: application/json
Accept: */*
Content-Length: 140

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getTransactionByHash",
  "params": [
    "0x4ab1c7206824bd372d7f9596318f7342983f8245aac6dfb1b54d097788f670e9"
  ]
}
200Success
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "type": "0x2",
    "chainId": "0x1",
    "nonce": "0x44ee01",
    "gas": "0x5208",
    "maxFeePerGas": "0x3a82ac7",
    "maxPriorityFeePerGas": "0x0",
    "to": "0xab6b4b11378a57933333e4acfdc45567dd78f14e",
    "value": "0x1f2e4a06b3f769",
    "accessList": [],
    "input": "0x",
    "r": "0x64b261f2fd827a0130469e968931f83d6bc5bf0a6704afc141dfa37a5a68ee47",
    "s": "0x55b5dd3508b9d6cb36a4966bc2fc473af105fa2f44690b07f640fbbcec49a879",
    "yParity": "0x1",
    "v": "0x1",
    "hash": "0x4ab1c7206824bd372d7f9596318f7342983f8245aac6dfb1b54d097788f670e9",
    "blockHash": "0xf2e8be4d34c391cb37e700c40603e16e2d71a76b2f81c584d8a135f205206b3a",
    "blockNumber": "0x1732d62",
    "transactionIndex": "0x17b",
    "from": "0x4838b106fce9647bdf1e7877bf73ce8b0bad5f97",
    "gasPrice": "0x3a82ac7"
  }
}

Last updated