Skip to main content

eth_getTransactionByHash RPC Method

Loading...

Updated on
Mar 30, 2026

eth_getTransactionByHash RPC Method

Parameters

hash
string
REQUIRED
Loading...

Returns

object
Loading...
blockHash
Loading...
blockNumber
Loading...
from
Loading...
gas
Loading...
gasPrice
Loading...
maxFeePerGas
Loading...
maxPriorityFeePerGas
Loading...
hash
Loading...
input
Loading...
nonce
Loading...
to
Loading...
transactionIndex
Loading...
value
Loading...
type
Loading...
accessList
Loading...
chainId
Loading...
v
Loading...
r
Loading...
s
Loading...
yParity
Loading...
Request
1
curl -X POST "https://docs-demo.imx-testnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "eth_getTransactionByHash",
6
"params": [
7
"0xd4583d66ee66fe254d5c7e6ab1a551084a735d987b9590a776adc7c8d5241994"
8
],
9
"id": 1
10
}'
1
curl -X POST "https://docs-demo.imx-testnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "eth_getTransactionByHash",
6
"params": [
7
"0xd4583d66ee66fe254d5c7e6ab1a551084a735d987b9590a776adc7c8d5241994"
8
],
9
"id": 1
10
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0x6e837347adaad4fe6abf748eee9e1642c222ba8baab985a7071c5b1cf3312c4d",
6
"blockNumber": "0x11a9c6",
7
"from": "0x069b4848f3f991ca92d3400d40cddefae6a7e549",
8
"gas": "0x643c0f",
9
"gasPrice": "0x174876e862",
10
"maxFeePerGas": "0x174876e868",
11
"maxPriorityFeePerGas": "0x174876e831",
12
"hash": "0xd4583d66ee66fe254d5c7e6ab1a551084a735d987b9590a776adc7c8d5241994",
13
"input": "0x55a3143c0000000000000000000000000000000000000000000000000000000000000060ea17050e59bf8a86991fed451d58f6d790f7421649923b980150858bba3fe78f00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000f496d6d757461626c6545524337323100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000280000000000000000000000000069b4848f3f991ca92d3400d40cddefae6a7e549000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000020000000000000000000000000002ada708db37470f6707075cbdc7bd295d30b25e000000000000000000000000069b4848f3f991ca92d3400d40cddefae6a7e54900000000000000000000000000000000000000000000000000000000000002bc0000000000000000000000000000000000000000000000000000000000000006436f66666565000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034346450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d554248726148546d514d797169514539504845694e36486a6550624a6353474752754c33316b72575a5558412f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005e68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d554248726148546d514d797169514539504845694e36486a6550624a6353474752754c33316b72575a5558412f6e66742d6d657461646174612f0000",
14
"nonce": "0x0",
15
"to": "0xa57dcb9791792ec27bd2e33fd4c37fba306a579d",
16
"transactionIndex": "0x0",
17
"value": "0x0",
18
"type": "0x2",
19
"accessList": [],
20
"chainId": "0x34a1",
21
"v": "0x1",
22
"r": "0x6ee6f7e0b8f1727a66c1d62060a556de177b00cc6c1c7e2f22968af36462904",
23
"s": "0x7faf2cc298e2fde89fd5b2172636089298af5c00381ade7dbc69fef1418bf83",
24
"yParity": "0x1"
25
}
26
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"blockHash": "0x6e837347adaad4fe6abf748eee9e1642c222ba8baab985a7071c5b1cf3312c4d",
6
"blockNumber": "0x11a9c6",
7
"from": "0x069b4848f3f991ca92d3400d40cddefae6a7e549",
8
"gas": "0x643c0f",
9
"gasPrice": "0x174876e862",
10
"maxFeePerGas": "0x174876e868",
11
"maxPriorityFeePerGas": "0x174876e831",
12
"hash": "0xd4583d66ee66fe254d5c7e6ab1a551084a735d987b9590a776adc7c8d5241994",
13
"input": "0x55a3143c0000000000000000000000000000000000000000000000000000000000000060ea17050e59bf8a86991fed451d58f6d790f7421649923b980150858bba3fe78f00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000f496d6d757461626c6545524337323100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000280000000000000000000000000069b4848f3f991ca92d3400d40cddefae6a7e549000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000020000000000000000000000000002ada708db37470f6707075cbdc7bd295d30b25e000000000000000000000000069b4848f3f991ca92d3400d40cddefae6a7e54900000000000000000000000000000000000000000000000000000000000002bc0000000000000000000000000000000000000000000000000000000000000006436f66666565000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034346450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d554248726148546d514d797169514539504845694e36486a6550624a6353474752754c33316b72575a5558412f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005e68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d554248726148546d514d797169514539504845694e36486a6550624a6353474752754c33316b72575a5558412f6e66742d6d657461646174612f0000",
14
"nonce": "0x0",
15
"to": "0xa57dcb9791792ec27bd2e33fd4c37fba306a579d",
16
"transactionIndex": "0x0",
17
"value": "0x0",
18
"type": "0x2",
19
"accessList": [],
20
"chainId": "0x34a1",
21
"v": "0x1",
22
"r": "0x6ee6f7e0b8f1727a66c1d62060a556de177b00cc6c1c7e2f22968af36462904",
23
"s": "0x7faf2cc298e2fde89fd5b2172636089298af5c00381ade7dbc69fef1418bf83",
24
"yParity": "0x1"
25
}
26
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free