Skip to main content

eth_getTransactionByHash RPC Method

Returns the information about a transaction from a transaction hash.

Updated on
Jun 15, 2026

Parameters

hash
string
REQUIRED

The hash of a transaction

Returns

object
object | null

The transaction response object or null if no transaction is found

blockHash
string | null

The hash of the block where this transaction was included, null when pending

blockNumber
string | null

The block number where this transaction was included, encoded as a hexadecimal. null when pending

from
string

The address of the sender

gas
string

The gas provided by the sender encoded as hexadecimal

gasPrice
string

The gas price provided by the sender in wei encoded as hexadecimal

maxFeePerGas
string

(Optional) The maximum total fee per gas in wei encoded as hexadecimal (EIP-1559)

maxPriorityFeePerGas
string

(Optional) The maximum priority fee per gas in wei encoded as hexadecimal (EIP-1559)

hash
string

The hash of the transaction

input
string

The data sent along with the transaction

nonce
string

The number of transactions made by the sender prior to this one encoded as hexadecimal

to
string | null

The address of the receiver, null when the transaction created a contract

transactionIndex
string | null

The index position of the transaction in the block, null when pending

value
string

The value transferred in wei encoded as hexadecimal

type
string

The transaction type encoded as hexadecimal (e.g., 0x2 for EIP-1559)

accessList
array

(Optional) The optional access list for EIP-2930/1559 transactions

chainId
string

The chain ID where the transaction was executed encoded as hexadecimal

v
string

The standardized V field of the transaction signature (recovery ID or y-parity)

r
string

The R field of the transaction signature

s
string

The S field of the transaction signature

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": null
5
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": null
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free