eth_getTransactionByHash
Retrieve complete transaction details from any Ethereum network by supplying the transaction hash. Get sender, receiver, value, gas, and block information.
Instructions
Retrieves detailed transaction information using its unique transaction hash.
Args:
transactionHash (string): 32-byte transaction hash in hex format (e.g., '0xabc123...')
network (string, optional): Ethereum network to query, defaults to 'mainnet'
Returns:
Transaction object with hash, from, to, value, gas, gasPrice, input, nonce, blockHash, blockNumber, transactionIndex; null if transaction not found or still pending
Examples:
"Get transaction details": { "transactionHash": "0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b" }
"Query on Sepolia testnet": { "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 transaction hash to query. | |
| 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 |