# Plainchain Transaction Decoder

> Plainchain Transaction Decoder is a paid API for AI agents from plainchain.appin60.com, paid per call via x402, $0.002942/call, status unknown (last checked 2026-10-14).

Decodes and retrieves detailed information about a blockchain transaction by hash, including token transfers, fees, status, and confirmations across Base, Arbitrum, Ethereum, and Optimism.

## Facts

- Endpoint: GET https://plainchain.appin60.com/v1/tx?utm_source=zero.xyz
- Price: $0.002942/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/plainchain-transaction-decoder-19075929
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2TYcoaWOt3XlfQfNWPYd_

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 plainchain-transaction-decoder-19075929
```

Example prompt: Can you decode transaction 0x3a7f...b2c4 on Base and tell me what token transfers happened, the fee, and how many confirmations it has?

## When to prefer this

Use this endpoint when you need to decode a specific transaction by hash on Base, Arbitrum, Ethereum, or Optimism — especially for verifying x402 payment receipts, auditing token transfers, or checking confirmation counts. Prefer this over general block explorers when operating in an agent context that supports x402 micropayments and needs structured JSON output rather than HTML. Particularly suited for agents that need to verify that a USDC payment on Base was completed successfully.

## Known failure modes

- Invalid or malformed transaction hash (not matching 0x + 64 hex chars) returns a validation error
- Transaction hash not found on the specified chain returns an error or empty result
- Unsupported chain identifier returns an error
- Payment failure via x402 (insufficient USDC balance) blocks the request
- Network timeout if the chain RPC is slow or degraded

## How this service works

Gas, balances, token data, address type, approvals, transaction decoding, x402 receipt verification and verifiable randomness on Base, Arbitrum, Ethereum and Optimism. No API key: pay $0.001-$0.01 per call in USDC on Base via x402.

## Output

Returns a JSON object with the chain name, transaction status (success/failure), number of confirmations, fee in ETH and USD, and an array of token transfers each containing sender address, recipient address, token amount, and token symbol.

## 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",
       "pattern": "^0x[0-9a-fA-F]{64}$",
       "description": "transaction hash"
      },
      "chain": {
       "type": "string",
       "description": "base (default), arbitrum, ethereum or optimism; chain ids 8453, 42161, 1, 10 also work"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fee": {
   "eth": 4.1e-7,
   "usd": 0.00104
  },
  "chain": "Base",
  "status": "success",
  "confirmations": 3820001,
  "tokenTransfers": [
   {
    "to": "0x36c3...",
    "from": "0x4c29...",
    "amount": "0.01",
    "symbol": "USDC"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/plainchain-transaction-decoder-19075929/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from plainchain.appin60.com](https://www.zero.xyz/host/plainchain.appin60.com/llms.txt)
