Skip to main content

eth_getTransactionByHash RPC Method

Returns the information about a transaction from a transaction hash.

Updated on
Dec 02, 2026

Parameters

hash
string
REQUIRED

The hash of a transaction

Returns

object
object

The transaction response object, or null if no transaction is found:

type
string

The transaction type

chainId
string

(Conditional) The chain ID of the transaction, encoded as hexadecimal

nonce
string

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

gasPrice
string

(Conditional) The gas price provided by the sender in wei, encoded as hexadecimal

maxFeePerGas
string

(Type 2) Maximum total fee per gas, encoded as a hexadecimal quantity.

maxPriorityFeePerGas
string

(Type 2) Maximum priority fee per gas, encoded as a hexadecimal quantity.

gas
string

The gas provided by the sender, encoded as hexadecimal

to
string

The address of the receiver. null when it's a contract creation transaction

value
string

The value transferred in wei encoded as hexadecimal

accessList
array

(Type 2) Addresses and storage keys the transaction can access.

input
string

The data sent along with the transaction

r
string

The R field of the signature

s
string

The S field of the signature

yParity
string

(Type 2) Parity of the transaction signature, encoded as a hexadecimal quantity.

v
string

The standardized V field of the signature

hash
string

The hash of the transaction

blockHash
string

The hash of the block where this log was in. null when it's a pending log

blockNumber
string

The block number where this log was in. null when it's a pending log

transactionIndex
string

The integer of the transaction's index position that the log was created from. null when it's a pending log

from
string

The address of the sender

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"accessList": [],
6
"blockHash": "0x2d763c650659c5bbf26036448657667c8b32ebc2d18170c0320efc2895bb7436",
7
"blockNumber": "0x1",
8
"chainId": "0x80ea",
9
"from": "0x0f03d90cff4f9281334a62ddf76aaf5134cc0d5b",
10
"gas": "0x5208",
11
"gasPrice": "0x0",
12
"hash": "0xf5147a7a6a529e960da4d43391ef148ed914e7eca5400fbb2d4d153d038fcebf",
13
"input": "0x",
14
"maxFeePerGas": "0x0",
15
"maxPriorityFeePerGas": "0x0",
16
"nonce": "0x0",
17
"r": "0x21d8e6fc75b02c8d344ee9a7da0ffae6fe1445771e1e21913a5518b327bac2f8",
18
"s": "0x702d075c8ecff34944ee0033c4ba9a2ee3922d475ca296809ca5c66f870db6b5",
19
"to": "0x0f03d90cff4f9281334a62ddf76aaf5134cc0d5b",
20
"transactionIndex": "0x0",
21
"type": "0x2",
22
"v": "0x1",
23
"value": "0x0",
24
"yParity": "0x1"
25
}
26
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"accessList": [],
6
"blockHash": "0x2d763c650659c5bbf26036448657667c8b32ebc2d18170c0320efc2895bb7436",
7
"blockNumber": "0x1",
8
"chainId": "0x80ea",
9
"from": "0x0f03d90cff4f9281334a62ddf76aaf5134cc0d5b",
10
"gas": "0x5208",
11
"gasPrice": "0x0",
12
"hash": "0xf5147a7a6a529e960da4d43391ef148ed914e7eca5400fbb2d4d153d038fcebf",
13
"input": "0x",
14
"maxFeePerGas": "0x0",
15
"maxPriorityFeePerGas": "0x0",
16
"nonce": "0x0",
17
"r": "0x21d8e6fc75b02c8d344ee9a7da0ffae6fe1445771e1e21913a5518b327bac2f8",
18
"s": "0x702d075c8ecff34944ee0033c4ba9a2ee3922d475ca296809ca5c66f870db6b5",
19
"to": "0x0f03d90cff4f9281334a62ddf76aaf5134cc0d5b",
20
"transactionIndex": "0x0",
21
"type": "0x2",
22
"v": "0x1",
23
"value": "0x0",
24
"yParity": "0x1"
25
}
26
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free