# Optimism Tx Explainer

> Optimism Tx Explainer is a paid API for AI agents from automaton-tx-explainer.vercel.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-20).

Explains an Optimism transaction by returning its status, fee, decoded method and arguments, and ERC-20 token transfers with symbols and human-readable amounts.

## Facts

- Endpoint: GET https://automaton-tx-explainer.vercel.app/v1/optimism/tx?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/optimism-tx-explainer-4d4b2ddc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_waT0LYV_3IAqT23lwZh0g

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability optimism-tx-explainer-4d4b2ddc
```

Example prompt: Can you explain what happened in this Optimism transaction — 0x4a7b3c9d1e2f5a6b8c0d3e7f1a2b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b — including whether it succeeded, what method was called, and any token transfers?

## When to prefer this

Use this endpoint when you specifically need to analyze a transaction on the Optimism L2 network, including decoded method calls, ERC-20 transfer breakdowns, and fee information. Prefer this over generic block explorers when you need structured, machine-readable output with human-readable token amounts rather than raw hex data.

## Known failure modes

- Invalid or malformed transaction hash returns a validation error
- Transaction hash not found on Optimism network returns not found error
- Unrecognized function selector returns undecoded calldata (no match in signature DB)
- Network or RPC issues may cause temporary lookup failures
- Non-Optimism transaction hashes (e.g. Ethereum mainnet) will not be found

## How this service works

Use when: what did this Optimism transaction do? Explain a Optimism transaction: status, fee, decoded method + args (openchain signature DB), and ERC-20 transfers with symbols and human amounts.

## Output

Returns the transaction status (success/failure), gas fee paid, decoded function name and arguments (via OpenChain signature DB), and a list of ERC-20 token transfers including token symbols and human-readable amounts for the given Optimism transaction hash.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "hash"
     ],
     "properties": {
      "hash": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{64}$",
       "description": "Optimism transaction hash"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/optimism-tx-explainer-4d4b2ddc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from automaton-tx-explainer.vercel.app](https://www.zero.xyz/host/automaton-tx-explainer.vercel.app/llms.txt)
