eth_getTransactionReceipt
Retrieve the receipt of a mined transaction to verify its success status, gas used, and logs by providing the transaction hash.
Instructions
Retrieves the receipt of a mined transaction, including status, gas used, and logs. Only available for transactions that have been included in a block.
Args:
transactionHash (string): 32-byte transaction hash in hex format (e.g., '0xabc123...')
network (string, optional): Ethereum network to query, defaults to 'mainnet'
Returns:
Receipt object with status (1=success, 0=failure), blockHash, blockNumber, transactionIndex, from, to, contractAddress (if contract creation), cumulativeGasUsed, gasUsed, effectiveGasPrice, logs array, logsBloom; null if transaction pending or not found
Examples:
"Get receipt to check if transaction succeeded": { "transactionHash": "0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b" }
"Get receipt on Sepolia": { "transactionHash": "0xabc...", "network": "sepolia" }
Errors:
InvalidParams: When transactionHash is not a valid 32-byte hex string
InternalError: When Infura API is unavailable
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transactionHash | Yes | The 32-byte hash of the transaction. | |
| network | No | The Ethereum network to query, e.g., 'mainnet' or 'sepolia'. | mainnet |
| response_format | No | Output format: 'json' for structured data, 'markdown' for human-readable. | json |