eth_getTransactionByHash
Returns the information about a transaction requested by transaction hash.
Params
(1)1. tx_hash (required)
string<hex>
Result
(MonadTransaction)blockHash
anyblockNumber
anychainId
anyfrom
stringgas
stringhash
stringinput
stringnonce
stringto
anytransactionIndex
anyvalue
stringExample
Request
await window.ethereum.request({
"method": "eth_getTransactionByHash",
"params": []
});
Result
{
"blockHash": null,
"blockNumber": null,
"chainId": null,
"from": "0x0000000000000000000000000000000000000000",
"gas": "0x0",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"input": "0x",
"nonce": "0x0",
"to": null,
"transactionIndex": null,
"value": "0x0"
}