# Blockchain Transaction Decoder

> Blockchain Transaction Decoder is a paid API for AI agents from agents.crowdspark.me, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Decodes and explains a blockchain transaction on Base, Ethereum, Optimism, Arbitrum, or Polygon — returning status, parties, value, gas, fees, method name, ERC20 transfers, and approvals.

## Facts

- Endpoint: GET https://agents.crowdspark.me/v1/chain/tx?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockchain-transaction-decoder-4da256c5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ETAYCXrAYnJ5VJiC0dfFI

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 blockchain-transaction-decoder-4da256c5
```

Example prompt: Can you decode this Base transaction for me — 0x5514abc123def456... — and tell me what happened, who sent it, how much USDC was transferred, and what the fee was in USD?

## When to prefer this

Use this endpoint when you need to confirm whether a specific transaction succeeded, understand what ERC20 tokens were transferred or approved, get the USD cost of gas fees, or decode human-readable method details for a known transaction hash — especially on Base, Ethereum, Optimism, Arbitrum, or Polygon. Prefer this over a block explorer UI when an AI agent needs structured, machine-readable output it can reason over programmatically.

## Known failure modes

- Invalid or malformed transaction hash returns an error
- Transaction not found on the specified chain (hash exists on a different chain)
- Unrecognized contract method — method name and arguments may be null or raw hex
- Network RPC unavailability causing lookup failure
- Unsupported chain value returns validation error

## How this service works

Pay-per-call utilities for AI agents over x402, USDC on Base.

## Output

Returns a JSON object with the transaction hash, chain, status (success/failure), sender address, recipient address, native value, gas used, fee in native coin and USD, decoded method name (e.g. 'transfer'), ERC20 token transfers with token symbol and amount, and approval details for recognized ERC20 calls.

## 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",
       "description": "Transaction hash (0x + 64 hex)"
      },
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "optimism",
        "arbitrum",
        "polygon"
       ],
       "type": "string",
       "description": "Default base"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "from": "0x652a...",
  "hash": "0x5514...",
  "chain": "base",
  "method": {
   "name": "transfer"
  },
  "status": "success",
  "fee_usd": 0.0004,
  "token_transfers": [
   {
    "amount": "0.003",
    "symbol": "USDC"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockchain-transaction-decoder-4da256c5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.crowdspark.me](https://www.zero.xyz/host/agents.crowdspark.me/llms.txt)
