# x402 Ethereum Tx Explain

> x402 Ethereum Tx Explain is a paid API for AI agents from sim.0xrelay.party, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-13).

Decodes and explains a mined Ethereum mainnet transaction by hash, returning fee breakdown, call tree, internal ETH transfers, balance changes, and token transfers.

## Facts

- Endpoint: POST https://sim.0xrelay.party/explain?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ethereum-tx-explain-6a548ee4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xnLw5ph4imPV3tt_jgfVV

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 x402-ethereum-tx-explain-6a548ee4 -d '<json body>'
```

Example prompt: Can you explain what happened in Ethereum transaction 0x3f5a9c1d7b2e4f8a0c6d9e2b5f1a8c4d7e0f3a6b9c2d5e8f1a4b7c0d3e6f9a2b? Show me the call tree, token transfers, and fee breakdown.

## When to prefer this

Use this endpoint when you need a human-readable decomposition of an already-mined Ethereum transaction — particularly when you need the call tree, internal ETH flows, or token transfers broken out. It is distinct from the simulate endpoint (which works on unsigned txs pre-broadcast) and the check endpoint (pre-sign safety check). No signup or API key required; pay per call with USDC on Base via x402.

## Known failure modes

- Transaction hash not found or too old (pruned from node) — returns error or empty result
- Invalid hash format — returns validation error
- Transaction is pending (not yet mined) — not supported by this endpoint
- Network timeout if node is slow to respond
- Payment failure via x402 — call is blocked if USDC payment on Base is rejected

## How this service works

Pay-per-call Ethereum mainnet tools for agents: simulate a tx, check it before signing, explain a mined tx, broadcast a signed tx privately. USDC on Base via x402. No signup, no API key.

## Output

Returns a structured breakdown of the mined transaction including: the raw tx object, a fee object (gas used, gas price, total cost), execution status (success/reverted), the full internal call tree, an array of internal ETH transfers, per-account balance changes, and token transfer events.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "hash"
 ],
 "properties": {
  "hash": {
   "type": "string",
   "description": "0x transaction hash (recent blocks)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "tx": "object",
 "fee": "object",
 "status": "string",
 "callTree": "object",
 "internalEth": "array",
 "balanceChanges": "array",
 "tokenTransfers": "array"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ethereum-tx-explain-6a548ee4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sim.0xrelay.party](https://www.zero.xyz/host/sim.0xrelay.party/llms.txt)
