Skip to main content

eth_getTransactionByHash RPC Method

Returns the information about a transaction from a transaction hash.

Updated on
Jan 21, 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 in. null when it's a pending log

blockNumber
string | null

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

blockTimestamp
string

The timestamp of the block where this transaction was included, encoded as hexadecimal.

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

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 its a contract creation transaction

transactionIndex
string | null

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

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

The parity of the y-value of the secp256k1 signature, encoded as hexadecimal.

sourceHash
string

The hash of the source transaction that created this transaction

mint
string

The minting event associated with the transaction

depositReceiptVersion
string

The version of a deposit receipt

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0x24ccba7a44a5ebb81249e9c2c86438218fde5146e609c646e5e57bbbdb9fc11a",
6
"blockNumber": "0x9764c4",
7
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
8
"gas": "0xf4240",
9
"gasPrice": "0x0",
10
"hash": "0xb53e931671b869a1cc2971a827dc6b70c164ffff26d407e6c9ce947d677c74c8",
11
"input": "0x015d8eb9000000000000000000000000000000000000000000000000000000000123c1b10000000000000000000000000000000000000000000000000000000065b925b70000000000000000000000000000000000000000000000000000000c15c8cf0e45ce1265fc82b3134025d94979f379c353dd8dc205e92def67102e3c14e2074b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005050f69a9786f081509234f1a7f4684b5e5b76c900000000000000000000000000000000000000000000000000000000000000bc00000000000000000000000000000000000000000000000000000000000a6fe0",
12
"nonce": "0x9764c3",
13
"to": "0x4200000000000000000000000000000000000015",
14
"transactionIndex": "0x0",
15
"value": "0x0",
16
"type": "0x7e",
17
"v": "0x0",
18
"r": "0x0",
19
"s": "0x0",
20
"sourceHash": "0x9ae82271b4dcf8e6cadf8b11bd2e7d6a9e2b5d9e2238d9eec43ab2a5873e305e",
21
"mint": "0x0",
22
"depositReceiptVersion": "0x1"
23
}
24
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0x24ccba7a44a5ebb81249e9c2c86438218fde5146e609c646e5e57bbbdb9fc11a",
6
"blockNumber": "0x9764c4",
7
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
8
"gas": "0xf4240",
9
"gasPrice": "0x0",
10
"hash": "0xb53e931671b869a1cc2971a827dc6b70c164ffff26d407e6c9ce947d677c74c8",
11
"input": "0x015d8eb9000000000000000000000000000000000000000000000000000000000123c1b10000000000000000000000000000000000000000000000000000000065b925b70000000000000000000000000000000000000000000000000000000c15c8cf0e45ce1265fc82b3134025d94979f379c353dd8dc205e92def67102e3c14e2074b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000005050f69a9786f081509234f1a7f4684b5e5b76c900000000000000000000000000000000000000000000000000000000000000bc00000000000000000000000000000000000000000000000000000000000a6fe0",
12
"nonce": "0x9764c3",
13
"to": "0x4200000000000000000000000000000000000015",
14
"transactionIndex": "0x0",
15
"value": "0x0",
16
"type": "0x7e",
17
"v": "0x0",
18
"r": "0x0",
19
"s": "0x0",
20
"sourceHash": "0x9ae82271b4dcf8e6cadf8b11bd2e7d6a9e2b5d9e2238d9eec43ab2a5873e305e",
21
"mint": "0x0",
22
"depositReceiptVersion": "0x1"
23
}
24
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free