Skip to main content

eth_getTransactionByHash

Returns the information about a transaction requested by transaction hash.

Params

(1)

1. tx_hash (required)

string

Result

(MonadTransaction)
type
string
chainId
string
nonce
string
gas
string
maxFeePerGas
string
maxPriorityFeePerGas
string
to
string or null
value
string
accessList
array
input
string
r
string
s
string
yParity
string or null
v
string or null
hash
string
blockHash
string or null
blockNumber
string or null
transactionIndex
string or null
from
string
gasPrice
string or null

Example

Request

await window.ethereum.request({
"method": "eth_getTransactionByHash",
"params": []
});

Result

{
"accessList": [],
"blockHash": "0x883f974b17ca7b28cb970798d1c80f4d4bb427473dc6d39b2a7fe24edc02902d",
"blockNumber": "0xe26e6d",
"chainId": "0x1",
"from": "0x3cf412d970474804623bb4e3a42de13f9bca5436",
"gas": "0x46a02",
"gasPrice": "0x50101df3a",
"hash": "0x0e07d8b53ed3d91314c80e53cf25bcde02084939395845cbb625b029d568135c",
"input": "0x5ae401dc00000000000000000000000000000000000000000000000000000000628ced5b000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000e442712a6700000000000000000000000000000000000000000000b3ff1489674e11c40000000000000000000000000000000000000000000000000000004a6ed55bbcc18000000000000000000000000000000000000000000000000000000000000000800000000000000000000000003cf412d970474804623bb4e3a42de13f9bca54360000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000003a75941763f31c930b19c041b709742b0b31ebb600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412210e8a00000000000000000000000000000000000000000000000000000000",
"maxFeePerGas": "0x7fc1a20a8",
"maxPriorityFeePerGas": "0x59682f00",
"nonce": "0x16d",
"r": "0x7f2153019a74025d83a73effdd91503ceecefac7e35dd933adc1901c875539aa",
"s": "0x334ab2f714796d13c825fddf12aad01438db3a8152b2fe3ef7827707c25ecab3",
"to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
"transactionIndex": "0xad",
"type": "0x2",
"v": "0x0",
"value": "0x4a6ed55bbcc180",
"yParity": "0x0"
}

Params

tx_hash


Request

await window.ethereum.request({
"method": "eth_getTransactionByHash",
"params": [
null
]
});