eth_getTransactionReceipt
Returns the receipt of a transaction by transaction hash.
Params
(1)1. tx_hash (required)
string
Result
(MonadTransactionReceipt)type
stringstatus
stringcumulativeGasUsed
stringlogs
array[object]address
stringtopics
array[string]data
stringblockHash
string or null
blockNumber
string or null
transactionHash
string or null
transactionIndex
string or null
logIndex
string or null
removed
booleanlogsBloom
stringtransactionHash
stringtransactionIndex
string or null
blockHash
string or null
blockNumber
string or null
gasUsed
stringeffectiveGasPrice
stringfrom
stringto
string or null
contractAddress
anyExample
Request
await window.ethereum.request({
"method": "eth_getTransactionReceipt",
"params": []
});
Result
{
"blockHash": "0x4acbdefb861ef4adedb135ca52865f6743451bfbfa35db78076f881a40401a5e",
"blockNumber": "0x129f4b9",
"contractAddress": null,
"cumulativeGasUsed": "0xa42aec",
"effectiveGasPrice": "0xfb0f6e8c9",
"from": "0x9a53bfba35269414f3b2d20b52ca01b15932c7b2",
"gasUsed": "0xbde1",
"logs": [
{
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"blockHash": "0x4acbdefb861ef4adedb135ca52865f6743451bfbfa35db78076f881a40401a5e",
"blockNumber": "0x129f4b9",
"data": "0x00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000",
"logIndex": "0x118",
"removed": false,
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x0000000000000000000000009a53bfba35269414f3b2d20b52ca01b15932c7b2",
"0x00000000000000000000000039e5dbb9d2fead31234d7c647d6ce77d85826f76"
],
"transactionHash": "0x21f6554c28453a01e7276c1db2fc1695bb512b170818bfa98fa8136433100616",
"transactionIndex": "0x7f"
}
],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000200000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000800000000000000000000000000000000004000000000000000000800000000100000020000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000010000000000000000000000000000",
"status": "0x1",
"to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"transactionHash": "0x21f6554c28453a01e7276c1db2fc1695bb512b170818bfa98fa8136433100616",
"transactionIndex": "0x7f",
"type": "0x2"
}