Skip to main content

eth_getTransactionByHash RPC Method

Returns the information about a transaction from a transaction hash.

Updated on
Oct 26, 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

(Conditional) 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

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

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

chainId
string

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

yParity
string

Signature recovery parity, encoded as hexadecimal.

blockTimestamp
string

Timestamp of the containing block, encoded as hexadecimal.

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"type": "0x13",
6
"gas": "0x1c9c380",
7
"nonce": "0x4ffff",
8
"to": "0x0000000000000000000000000000000000002002",
9
"value": "0x3782dace9d900000",
10
"input": "0x092193ab000000000000000000000000514708beda3441cc4e141f8546c096eaab7c8a05",
11
"r": "0x1",
12
"s": "0x2",
13
"yParity": "0x0",
14
"v": "0x0",
15
"hash": "0x5d005403489e1bc301344d2b51fa7f403372cf4e7941c2861aa320f1605c9dd4",
16
"blockHash": "0x464dc0fc78ef448e18597261ac67ecfdf3c5a6ba0a86d30947ca4d379f0fc46b",
17
"blockNumber": "0x50000",
18
"transactionIndex": "0x0",
19
"from": "0xfffffffffffffffffffffffffffffffffffffffe",
20
"blockTimestamp": "0x6a8e16c4"
21
}
22
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"type": "0x13",
6
"gas": "0x1c9c380",
7
"nonce": "0x4ffff",
8
"to": "0x0000000000000000000000000000000000002002",
9
"value": "0x3782dace9d900000",
10
"input": "0x092193ab000000000000000000000000514708beda3441cc4e141f8546c096eaab7c8a05",
11
"r": "0x1",
12
"s": "0x2",
13
"yParity": "0x0",
14
"v": "0x0",
15
"hash": "0x5d005403489e1bc301344d2b51fa7f403372cf4e7941c2861aa320f1605c9dd4",
16
"blockHash": "0x464dc0fc78ef448e18597261ac67ecfdf3c5a6ba0a86d30947ca4d379f0fc46b",
17
"blockNumber": "0x50000",
18
"transactionIndex": "0x0",
19
"from": "0xfffffffffffffffffffffffffffffffffffffffe",
20
"blockTimestamp": "0x6a8e16c4"
21
}
22
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free