Skip to main content

eth_getTransactionByHash RPC Method

Returns the information about a transaction from a transaction hash.

Updated on
Mar 27, 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

chainId
string

The chain ID of the blockchain

nonce
string

The number of transactions made by the sender before this one, encoded as hexadecimal

gasPrice
string

The gas price provided by the sender in wei, encoded as hexadecimal (legacy, optional in EIP-1559)

gas
string

The gas provided by the sender, encoded as hexadecimal

maxFeePerGas
string

(Optional) The maximum fee per gas set in the transaction (EIP-1559 only)

maxPriorityFeePerGas
string

(Optional) The maximum priority fee per gas set in the transaction (EIP-1559 only)

to
string | null

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

value
string

The value transferred in wei, encoded as hexadecimal

accessList
array

(Optional) The access list for EIP-2930 and EIP-1559 transactions

input
string

The data sent along with the transaction

r
string

The R field of the signature

s
string

The S field of the signature

yParity
string

(Optional) The parity bit of the signature (used instead of v in typed transactions such as EIP-1559)

v
string

The V field of the signature (legacy transactions, mutually exclusive with yParity)

hash
string

The hash of the transaction

blockHash
string

The hash of the block containing this transaction

blockNumber
string

The block number containing this transaction

transactionIndex
string

The index position of this transaction in the block

from
string

The address of the sender

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"type": "0x0",
6
"chainId": "0x2611",
7
"nonce": "0x1bab",
8
"gasPrice": "0x47868c08",
9
"gas": "0x35f30",
10
"to": "0x3c2269811836af69497e5f486a85d7316753cf62",
11
"value": "0x0",
12
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000016f0000000000000000000000000000000000000000000001fa13e050d85ef86fe4000000000000000000000000000000000000000000000000000000002da2df000000000000000000000000000000000000000000000000000000000000000010",
13
"r": "0xed68e6ca9e7f7c7d7096b3ea633a91aa2f8b85a619f502c4651b68a71f104dc0",
14
"s": "0x4cd0739f734bd574b01624a2b95c41e82e5c6eaa33caeab2901f2507521d581a",
15
"v": "0x4c46",
16
"hash": "0x58140afbab35d992bcccaf9df2630ed2e4c179ab2ae132e4e7b0f252f4b562b5",
17
"blockHash": "0x3470f949d7b08fa655c7228dd7a05a36dd31ceaf67fb05b42664262f31922d87",
18
"blockNumber": "0xba2cd",
19
"transactionIndex": "0x3",
20
"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749"
21
}
22
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"type": "0x0",
6
"chainId": "0x2611",
7
"nonce": "0x1bab",
8
"gasPrice": "0x47868c08",
9
"gas": "0x35f30",
10
"to": "0x3c2269811836af69497e5f486a85d7316753cf62",
11
"value": "0x0",
12
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000016f0000000000000000000000000000000000000000000001fa13e050d85ef86fe4000000000000000000000000000000000000000000000000000000002da2df000000000000000000000000000000000000000000000000000000000000000010",
13
"r": "0xed68e6ca9e7f7c7d7096b3ea633a91aa2f8b85a619f502c4651b68a71f104dc0",
14
"s": "0x4cd0739f734bd574b01624a2b95c41e82e5c6eaa33caeab2901f2507521d581a",
15
"v": "0x4c46",
16
"hash": "0x58140afbab35d992bcccaf9df2630ed2e4c179ab2ae132e4e7b0f252f4b562b5",
17
"blockHash": "0x3470f949d7b08fa655c7228dd7a05a36dd31ceaf67fb05b42664262f31922d87",
18
"blockNumber": "0xba2cd",
19
"transactionIndex": "0x3",
20
"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749"
21
}
22
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free