Skip to main content

eth_getTransactionByHash RPC Method

Returns the information about a transaction from a transaction hash.

Updated on
May 01, 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

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

blockNumber

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

from

The address of the sender

gas

The gas provided by the sender, encoded as hexadecimal

gasPrice

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

maxFeePerGas

The maximum fee per gas set in the transaction

maxPriorityFeePerGas

The maximum priority gas fee set in the transaction

hash

The hash of the transaction

input

The data sent along with the transaction

nonce

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

to

The address of the receiver. Null when its a contract creation transaction

transactionIndex

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

value

The value transferred in wei encoded as hexadecimal

type

The transaction type

accessList

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

chainId

The chain id of the transaction, if any

v

The standardized V field of the signature

r

The R field of the signature

s

The S field of the signature

yParity

The yParity field

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0xdfc6a2834651bd51aefba0d1eca1b93eeedb0246aa111210a777247cab44633f",
6
"blockNumber": "0x333928c",
7
"from": "0x11189a556ee22a25c37191749fc4a3aee6727b6b",
8
"gas": "0x139c8",
9
"gasPrice": "0x1cac1acca1",
10
"maxFeePerGas": "0x2532674538",
11
"maxPriorityFeePerGas": "0x6fc23ac00",
12
"hash": "0xe9983ca270514615a2ac1fc1b0008114bede2582ccd37bc46767bdc571489326",
13
"input": "0x350f719800000000000000000000000000000000000000000000000000000000b17a6947",
14
"nonce": "0x1c84",
15
"to": "0x7573933eb12fa15d5557b74fdaff845b3baf0ba2",
16
"transactionIndex": "0x54",
17
"value": "0x0",
18
"type": "0x2",
19
"accessList": [],
20
"chainId": "0x89",
21
"v": "0x0",
22
"r": "0xb8bf23fb124b6cbcef0e9d5cb9743ddfb52d41f999bfd4ba936c9de625d1409",
23
"s": "0x2a196e5bdf8e798d494846e61030d889f26d9b2fe25358b97bebdc66cbcc85a7",
24
"yParity": "0x0"
25
}
26
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0xdfc6a2834651bd51aefba0d1eca1b93eeedb0246aa111210a777247cab44633f",
6
"blockNumber": "0x333928c",
7
"from": "0x11189a556ee22a25c37191749fc4a3aee6727b6b",
8
"gas": "0x139c8",
9
"gasPrice": "0x1cac1acca1",
10
"maxFeePerGas": "0x2532674538",
11
"maxPriorityFeePerGas": "0x6fc23ac00",
12
"hash": "0xe9983ca270514615a2ac1fc1b0008114bede2582ccd37bc46767bdc571489326",
13
"input": "0x350f719800000000000000000000000000000000000000000000000000000000b17a6947",
14
"nonce": "0x1c84",
15
"to": "0x7573933eb12fa15d5557b74fdaff845b3baf0ba2",
16
"transactionIndex": "0x54",
17
"value": "0x0",
18
"type": "0x2",
19
"accessList": [],
20
"chainId": "0x89",
21
"v": "0x0",
22
"r": "0xb8bf23fb124b6cbcef0e9d5cb9743ddfb52d41f999bfd4ba936c9de625d1409",
23
"s": "0x2a196e5bdf8e798d494846e61030d889f26d9b2fe25358b97bebdc66cbcc85a7",
24
"yParity": "0x0"
25
}
26
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free