Skip to main content

eth_getTransactionByHash RPC Method

Returns the information about a transaction from a transaction hash.

Updated on
Oct 15, 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 containing this transaction. null when pending

blockNumber
string

The block number containing this transaction. null when pending

blockTimestamp
string

Timestamp of the block containing this transaction, encoded as a hexadecimal quantity

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

The maximum fee per gas. Present only for applicable transaction types.

maxPriorityFeePerGas
string

The maximum priority fee per gas. Present only for applicable transaction types.

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 index position of the transaction in the block encoded as hexadecimal. null when pending

value
string

The value transferred in wei encoded as hexadecimal

type
string

The transaction type encoded as hexadecimal

accessList
array

The access list for the transaction. Present only for applicable transaction types.

chainId
string

The chain ID

v
string

The V field of the transaction signature encoded as hexadecimal

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. Present only for applicable transaction types.

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0x0f51457c6063a7e37360e528c2ccf2bb18528ccac1a15167c7a3822c0818fc0b",
6
"blockNumber": "0x92bef3",
7
"blockTimestamp": "0x6ad108ef",
8
"from": "0xa7e0c5e2339b30ef3e6d0478351fc6d225abc30a",
9
"gas": "0x5208",
10
"gasPrice": "0x5f60810",
11
"hash": "0x08882bf4ef7401b407f87367cb36887c4bbee74808a9dddd99b2b92c16e25ed3",
12
"input": "0x",
13
"nonce": "0x55",
14
"to": "0xc64c78f7199b5477973bf68c010c932c2d663c11",
15
"transactionIndex": "0x1",
16
"value": "0x8ae8f2677c6",
17
"type": "0x0",
18
"chainId": "0x185d9",
19
"v": "0x30bd6",
20
"r": "0x3c5091cdb32b11b0ccd8e1a701767e170148c2fca1efc813eb24bdb98de3c4e7",
21
"s": "0x368e32d248462b3a175c53d24b266b6fe6c958619de3ea46efe7949a8d41e680"
22
}
23
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0x0f51457c6063a7e37360e528c2ccf2bb18528ccac1a15167c7a3822c0818fc0b",
6
"blockNumber": "0x92bef3",
7
"blockTimestamp": "0x6ad108ef",
8
"from": "0xa7e0c5e2339b30ef3e6d0478351fc6d225abc30a",
9
"gas": "0x5208",
10
"gasPrice": "0x5f60810",
11
"hash": "0x08882bf4ef7401b407f87367cb36887c4bbee74808a9dddd99b2b92c16e25ed3",
12
"input": "0x",
13
"nonce": "0x55",
14
"to": "0xc64c78f7199b5477973bf68c010c932c2d663c11",
15
"transactionIndex": "0x1",
16
"value": "0x8ae8f2677c6",
17
"type": "0x0",
18
"chainId": "0x185d9",
19
"v": "0x30bd6",
20
"r": "0x3c5091cdb32b11b0ccd8e1a701767e170148c2fca1efc813eb24bdb98de3c4e7",
21
"s": "0x368e32d248462b3a175c53d24b266b6fe6c958619de3ea46efe7949a8d41e680"
22
}
23
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free