# Anchor X402 Transaction Decoder

> Anchor X402 Transaction Decoder is a paid API for AI agents from api.anchor-x402.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Decodes and structures any mainnet transaction from Base, Ethereum, or Solana given a transaction hash

## Facts

- Endpoint: POST https://api.anchor-x402.com/v1/decode/tx
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-anchor-x402-com-40d90b81
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h2m2Dy8C1ruAQB0wiV6jM

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 api-anchor-x402-com-40d90b81 -d '<json body>'
```

Example prompt: Can you decode this Ethereum mainnet transaction for me — 0x4a3b7c1d2e9f... — and tell me what it actually did, who sent it, what was transferred, and what contract was called?

## When to prefer this

Use this endpoint when you need a structured, human-readable decode of any mainnet transaction across Base, Ethereum, or Solana — particularly useful when you have a raw tx hash and need to understand transfers, contract calls, or method invocations without running your own RPC node. Prefer this over block explorer scraping or building custom decoders for multi-chain support.

## Known failure modes

- Invalid or malformed transaction hash returns error
- Transaction hash not found on the specified chain returns not-found error
- Unsupported chain specified returns validation error
- Network congestion or RPC issues may cause timeouts
- Payment failure (insufficient USDC balance) returns 402 status

## How this service works

Structured decode of any mainnet tx (base | ethereum | solana) — $0.001 USDC

## Output

A structured JSON breakdown of the transaction including sender, recipient, token amounts, contract interactions, method calls, fees, block number, and other decoded fields relevant to the transaction type on the specified chain (Base, Ethereum, or Solana).

## 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": {
     "required": [
      "chain",
      "tx_hash"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "solana"
       ],
       "type": "string"
      },
      "tx_hash": {
       "type": "string",
       "description": "EVM 0x+64hex or Solana base58 signature."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "status": 1,
  "tx_hash": "0x7fb4...",
  "gas_used": 21064,
  "timestamp": 1746820000,
  "value_eth": "0",
  "value_wei": "0",
  "to_address": "0xFE70...",
  "block_number": 24000000,
  "from_address": "0xFE70...",
  "native_currency": "ETH",
  "input_calldata_hex": "0xab08..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-anchor-x402-com-40d90b81/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.anchor-x402.com](https://www.zero.xyz/host/api.anchor-x402.com/llms.txt)
