eth_getTransactionReceipt RPC Method
Fetches the execution receipt for a mined transaction.
Parameters#
stringrequired
32-byte transaction hash, hex-encoded.
Result#
object | null - The transaction receipt object, or null if the transaction has not been mined.
Code sample#
{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": [
"0x0e07d8b53ed3d91314c80e53cf25bcde02084939395845cbb625b029d568135c"
],
"id": 1
}
Response#
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"type": "0x2",
"status": "0x1",
"transactionHash": "0x0e07d8b53ed3d91314c80e53cf25bcde02084939395845cbb625b029d568135c",
"transactionIndex": "0x0",
"blockHash": "0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae",
"blockNumber": "0x4b7",
"gasUsed": "0x5208",
"effectiveGasPrice": "0x3b9aca00",
"from": "0x3cf412d970474804623bb4e3a42de13f9bca5436",
"to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
"contractAddress": null,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
}
Try It