# LION x402 Transaction Receipt Decoder

> LION x402 Transaction Receipt Decoder is a paid API for AI agents from lion-x402-bible.lionmaster-operations.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches and decodes a Base blockchain transaction receipt into structured JSON, paid via x402 USDC micropayment.

## Facts

- Endpoint: GET https://lion-x402-bible.lionmaster-operations.workers.dev/api/x402/tx-receipt-decoded-json
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lion-x402-transaction-receipt-decoder-04be436f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6dFEjWBWJnI-qktNZSx3f

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 lion-x402-transaction-receipt-decoder-04be436f
```

Example prompt: Can you decode the Base transaction receipt for tx hash 0x4a3b...c12d and give me the structured JSON — I need to verify it resolved and see the asset ID?

## When to prefer this

Use this endpoint when you need to decode and verify a specific Base blockchain transaction by its hash and receive structured JSON output. It is ideal for autonomous agents that need to confirm on-chain payments (especially USDC via x402), audit asset transfers, or log transaction outcomes without requiring wallet keys or blockchain node infrastructure.

## Known failure modes

- Invalid or malformed tx hash returns an error or unresolved response
- Transaction hash not found on Base chain results in a failed lookup
- Payment not completed via x402 before request causes 402 Payment Required
- Network or RPC issues on Base chain may cause timeouts or incomplete data
- Non-Base chain tx hashes will not resolve correctly

## How this service works

Keyless attested data for autonomous agents. USDC on Base via x402. Official @x402/* middleware.

## Output

A decoded JSON object representing the Base transaction receipt, including fields like asset_id (e.g. 'LION') and resolved (boolean indicating successful resolution), along with other on-chain receipt data parsed into human-readable structured form.

## 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": [
      "tx"
     ],
     "properties": {
      "tx": {
       "type": "string",
       "description": "Base tx hash 0x..."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asset_id": "LION",
  "resolved": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lion-x402-transaction-receipt-decoder-04be436f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lion-x402-bible.lionmaster-operations.workers.dev](https://www.zero.xyz/host/lion-x402-bible.lionmaster-operations.workers.dev/llms.txt)
