# Riley Craig x402 Agent Store — Blockchain Transaction Explainer

> Riley Craig x402 Agent Store — Blockchain Transaction Explainer is a paid API for AI agents from x402-agent-store.rileycraig14.workers.dev, paid per call via x402, $0.09/call, status unknown (last checked 2026-09-14).

Decodes and explains a blockchain transaction by hash, returning a human-readable summary of the action, method called, and asset changes (e.g. swaps, transfers)

## Facts

- Endpoint: GET https://x402-agent-store.rileycraig14.workers.dev/chain/tx-explain
- Price: $0.09/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/riley-craig-x402-agent-store-blockchain-transaction-explainer-184e24d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cmc--0zD7b8ay2XefBeGA

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 riley-craig-x402-agent-store-blockchain-transaction-explainer-184e24d4
```

Example prompt: Can you explain what happened in this Ethereum transaction — hash 0xabc123...def456? I want to know what action was performed, which contract method was called, and what assets moved in or out.

## When to prefer this

Use this endpoint when an agent needs to explain or audit a specific on-chain transaction in plain language — especially for DeFi operations like swaps, transfers, or contract interactions. Ideal when the user provides a tx hash and wants asset flows and a human-readable summary without setting up an RPC node or indexer. Prefer over raw RPC calls when interpretability matters.

## Known failure modes

- Invalid or malformed transaction hash returns an error
- Transaction not found on the specified chain returns 404 or empty result
- Unsupported chain identifier causes lookup failure
- Unrecognized or low-level contract calls may yield incomplete method or summary data
- Payment not provided or insufficient USDC causes 402 response

## How this service works

Decode any transaction by hash into plain English: what happened (swap/transfer/approval/mint/call), the actors, and the full asset changes (every native+token in/out with symbol, amount, direction), plus status, fee and method. For wallet UX, accounting, risk and trading agents. Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis via Blockscout.

## Output

Returns a JSON object with the transaction hash, a short action label (e.g. 'swap'), the contract method name (e.g. 'swapExactETHForTokens'), a plain-English summary sentence, and an array of asset changes each listing symbol, amount, and direction (in/out).

## 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"
      },
      "chain": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hash": "0x...",
  "action": "swap",
  "method": "swapExactETHForTokens",
  "summary": "swapped 1.5 ETH for 4,200 USDC via Uniswap V3",
  "asset_changes": [
   {
    "amount": 1.5,
    "symbol": "ETH",
    "direction": "out"
   },
   {
    "amount": 4200,
    "symbol": "USDC",
    "direction": "in"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/riley-craig-x402-agent-store-blockchain-transaction-explainer-184e24d4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-store.rileycraig14.workers.dev](https://www.zero.xyz/host/x402-agent-store.rileycraig14.workers.dev/llms.txt)
