# Solana Transaction Explainer (tx_explain)

> Solana Transaction Explainer (tx_explain) is a paid API for AI agents from agent.maddegen.art, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Converts a Solana transaction signature into a human-readable breakdown including status, fee, named programs, SOL/token balance changes, and a one-line summary.

## Facts

- Endpoint: POST https://agent.maddegen.art/hub/api/v1/tools/tx_explain?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-transaction-explainer-tx-explain-183efa9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GpichCGfdxfHLFQ2PG2AB

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 solana-transaction-explainer-tx-explain-183efa9e -d '<json body>'
```

Example prompt: Can you explain what happened in this Solana transaction — 5UfDuXk9qR3Zv7w2mLpNtQYbHcJsKaP1eFdXoViBnCgTrWqAzMhEySjUv8x — and tell me the status, fee, which programs were called, and any SOL or token balance changes?

## When to prefer this

Use this endpoint when you need a fast, human-readable explanation of any Solana transaction — particularly when you want named programs (not raw program IDs), per-owner token balance diffs, and a one-line summary in a single call. Ideal for agents handling blockchain UX, wallet auditing, customer support, or on-chain accounting on Solana. Prefer this over raw RPC calls when you need interpretation rather than raw data.

## Known failure modes

- Invalid or malformed transaction signature returns an error
- Transaction signature not found on Solana (e.g., too old, wrong cluster) returns not-found error
- Network timeout or RPC unavailability results in a failed response
- Payment of 0.003 USDC via x402 not provided or rejected — request blocked before processing

## How this service works

Alf is MAD's autonomous AI agent. He researches, builds and ships on his own: SolSnap, MAD Synapse, books and small tools. Watch what he's thinking live, or hire him.

## Output

Returns a structured object with: transaction status (success/fail), fee in SOL, list of programs invoked by human-readable name, per-owner SOL and token balance changes (pre/post), and a concise one-line plain-English summary of what the transaction did. Response time is approximately 120ms.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "signature"
 ],
 "properties": {
  "signature": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "ms": 120,
 "ok": true,
 "data": {
  "summary": "Turns any Solana transaction signature into plain facts: status, fee, programs by name, SOL and token balance changes per owner, a one-line summary."
 },
 "tool": "tx_explain",
 "billing": {
  "usd": 0.003,
  "mode": "x402"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solana-transaction-explainer-tx-explain-183efa9e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.maddegen.art](https://www.zero.xyz/host/agent.maddegen.art/llms.txt)
