Skip to main content

eth_getTransactionByHash

Ethereum API

Returns the information about a transaction requested by transaction hash.

Params

(1)

1. Transaction hash (required)

string
Match pattern:
^0x[0-9a-f]{64}$

Result

(Transaction information)
(one of)
null

Params

Transaction hash


Request

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