Explain a transaction in plain English (Base / Solana): swap, transfer, approval, contract call
tx_explainUse when an agent must tell a user what a transaction did. Input: tx (Base hash or Solana signature), network=eip155:8453|solana (optional, inferred). Output: explanation (1-3 sentences; every number checked against the decoded facts, template fallback), facts: status, time, fee, from/to, called function (curated selector table), ERC-20 transfers, approvals, inferred swap (sent/received), Solana programs. Use instead: base_tx for raw decoded facts only; sol_tx for raw Solana balance changes. Example: ?tx=0x…&network=eip155:8453 Price: $0.005 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.
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": {
"tx": "<tx>"
},
"name": "tx_explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | Yes | Base transaction hash (0x + 64 hex) or Solana signature (base58) | |
| network | No | Chain (default: Base for 0x hashes, Solana otherwise) |