# EVM Transaction Explainer

> EVM Transaction Explainer is a paid API for AI agents from evm-tx-toolkit.mtree.workers.dev, paid per call via x402, $0.100000/call, status unknown (last checked 2026-09-14).

Decodes a confirmed EVM transaction hash into a human-readable explanation including token transfers, swap/event labels, function selector, gas used, and a one-line summary

## Facts

- Endpoint: POST https://evm-tx-toolkit.mtree.workers.dev/v1/tx/explain
- Price: $0.100000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/evm-tx-toolkit-mtree-workers-dev-c4e865bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pq25_MZX7priU1UWriKH3

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 evm-tx-toolkit-mtree-workers-dev-c4e865bd -d '<json body>'
```

Example prompt: Can you explain what this Base transaction did — 0x4a3f...c9b2 — including what tokens changed hands, which contract was called, and give me a plain-English summary?

## When to prefer this

Use this endpoint when an agent needs to understand what a confirmed on-chain transaction actually did — particularly for post-trade analysis, audit trails, user-facing explanations, or pre-action research on a known tx hash. Supports Base, Ethereum, Arbitrum, Optimism, and Polygon. Prefer over raw RPC calls when you need a structured, human-readable breakdown rather than raw hex data.

## Known failure modes

- Transaction hash not found or not yet confirmed on the specified chain
- Unsupported chain specified (only Base, Ethereum, Arbitrum, Optimism, Polygon supported)
- Invalid or malformed transaction hash format
- Payment not provided or insufficient (requires 0.10 USDC on Base via x402)
- RPC timeout or node unavailability for the target chain
- Transaction is too complex or involves unsupported contract types for full decoding

## How this service works

Decode a confirmed EVM transaction on Base, Ethereum, Arbitrum, Optimism, or Polygon into a human-readable explanation with token transfers, swap/event labels, function selector, gas used, and a one-line summary. Returns JSON. Price 0.10 USDC on Base via x402. Demo/preview: https://evm-tx-toolkit.mtree.workers.dev/demo/tx/explain. Contact: https://evm-tx-toolkit.mtree.workers.dev/contact.

## Output

Returns a JSON object containing a one-line summary of the transaction, the contracts/programs invoked, the method called, token balance changes, approval events, swap/event labels, function selector, gas used, and a full list of token transfers

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "chain",
      "tx_hash"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string",
       "example": "base",
       "description": "EVM chain slug"
      },
      "tx_hash": {
       "type": "string",
       "example": "0x0000000000000000000000000000000000000000000000000000000000000000",
       "pattern": "^0x[0-9a-fA-F]{64}$",
       "description": "0x-prefixed transaction hash"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "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/evm-tx-toolkit-mtree-workers-dev-c4e865bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from evm-tx-toolkit.mtree.workers.dev](https://www.zero.xyz/host/evm-tx-toolkit.mtree.workers.dev/llms.txt)
