Skip to main content

eth_getTransactionByHash RPC Method

Returns the information about a transaction from a transaction hash.

Updated on
Feb 09, 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

type
string

The transaction type encoded as hexadecimal

sourceHash
string

The source hash associated with the transaction

from
string

The address of the sender

to
string | null

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

mint
string

The mint value encoded as hexadecimal

value
string

The value transferred in wei encoded as hexadecimal

gas
string

The gas provided by the sender encoded as hexadecimal

input
string

The data sent along with the transaction

hash
string

The hash of the transaction

r
string

The R field of the transaction signature

s
string

The S field of the transaction signature

yParity
string

The y-parity of the transaction signature encoded as hexadecimal

v
string

The V field of the transaction signature encoded as hexadecimal

blockHash
string | null

The hash of the block containing this transaction. null when pending

blockNumber
string | null

The block number containing this transaction. null when pending

transactionIndex
string | null

The index position of the transaction in the block encoded as hexadecimal. null when pending

depositReceiptVersion
string

(Optional) The deposit receipt version encoded as hexadecimal

gasPrice
string

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

nonce
string

(Optional) The number of transactions made by the sender before this one encoded as hexadecimal

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"type": "0x0",
5
"chainId": "0x8f",
6
"nonce": "0x3cf66c",
7
"gasPrice": "0x0",
8
"gas": "0x0",
9
"to": "0x0000000000000000000000000000000000001000",
10
"value": "0x15af1d78b58c40000",
11
"input": "0x791bdcf3000000000000000000000000fab47252753ecd46d75430ac75fe1e3d469e5722",
12
"r": "0x5eca9eef7bac06859ac7cc15b7857bf2218c4414ab3798c2f385c67679563de8",
13
"s": "0x21247e50315a7a56890df716479694625dda364e357d91d6d29d6ba1fdf79ed0",
14
"v": "0x142",
15
"hash": "0xc1999af8cea3f68712d427bbd5f4ccd08d7d8a052cbe9b95babb6d7c19ad9732",
16
"blockHash": "0x25df06205e4850c2c9aab4884c76373ccc359d656871a58573648ffecc3f4180",
17
"blockNumber": "0x23f41f1",
18
"transactionIndex": "0x0",
19
"from": "0x6f49a8f621353f12378d0046e7d7e4b9b249dc9e"
20
},
21
"id": 1
22
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"type": "0x0",
5
"chainId": "0x8f",
6
"nonce": "0x3cf66c",
7
"gasPrice": "0x0",
8
"gas": "0x0",
9
"to": "0x0000000000000000000000000000000000001000",
10
"value": "0x15af1d78b58c40000",
11
"input": "0x791bdcf3000000000000000000000000fab47252753ecd46d75430ac75fe1e3d469e5722",
12
"r": "0x5eca9eef7bac06859ac7cc15b7857bf2218c4414ab3798c2f385c67679563de8",
13
"s": "0x21247e50315a7a56890df716479694625dda364e357d91d6d29d6ba1fdf79ed0",
14
"v": "0x142",
15
"hash": "0xc1999af8cea3f68712d427bbd5f4ccd08d7d8a052cbe9b95babb6d7c19ad9732",
16
"blockHash": "0x25df06205e4850c2c9aab4884c76373ccc359d656871a58573648ffecc3f4180",
17
"blockNumber": "0x23f41f1",
18
"transactionIndex": "0x0",
19
"from": "0x6f49a8f621353f12378d0046e7d7e4b9b249dc9e"
20
},
21
"id": 1
22
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free