Get Transaction By Hash
get_transaction_by_hashGet the full transaction object for a transaction hash (from, to, value, input data, gas, gas price, nonce, block number/hash, transaction index). Returns null if the hash is unknown.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"txhash": "<txhash>"
},
"name": "get_transaction_by_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txhash | Yes | Transaction hash. | |
| chainid | No | Numeric chain id (e.g. 1=Ethereum, 56=BNB, 137=Polygon). If omitted, defaults to Ethereum Mainnet (1). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The JSON result returned by the Etherscan data tool. |