Skip to main content

eth_getTransactionByHash RPC Method

Returns the information about a transaction from a transaction hash.

Updated on
Mar 27, 2026

Parameters

hash
string
REQUIRED

The hash of a transaction

Returns

object
object

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

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

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 fee per gas set in the transaction

maxPriorityFeePerGas
string

(Optional) The maximum priority gas fee set in the transaction

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 before this one encoded as hexadecimal

to
string

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

transactionIndex
string

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

value
string

The value transferred in wei encoded as hexadecimal

type
string

The transaction type

accessList
array

(Optional) A list of addresses and storage keys that the transaction plans to access

chainId
string

(Optional) The chain id

v
string

The standardized V field of the signature

r
string

The R field of the signature

s
string

The S field of the signature

yParity
string

(Optional) Coordinate of key used in signature

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