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. Example: ?tx=0x…&network=eip155:8453 Price: $0.005 USDC (Base or Solana) via x402.
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) |