# LION TX Receipt Decoder (Base/Ethereum)

> LION TX Receipt Decoder (Base/Ethereum) is a paid API for AI agents from lionx402.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Decodes and returns a human-readable JSON representation of a blockchain transaction receipt, including decoded calldata, for a given transaction hash on Base or Ethereum.

## Facts

- Endpoint: GET https://lionx402.com/api/x402/tx-receipt-decoded-json
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lion-tx-receipt-decoder-base-ethereum-2f011c30
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z2fO5XgDu7hlimJDbaEWT

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-tx-receipt-decoder-base-ethereum-2f011c30
```

Example prompt: Can you decode the transaction receipt for tx hash 0xabc123... on Base (chain eip155:8453) and tell me what function was called, the parameters, and whether it succeeded?

## When to prefer this

Use this endpoint when an AI agent needs to programmatically decode and verify what a specific blockchain transaction did — especially on Base or Ethereum — without holding an API key. Ideal for post-payment verification workflows, auditing USDC transfers, or confirming smart contract interactions in agent pipelines that pay per call via x402.

## Known failure modes

- Invalid or malformed transaction hash returns error
- Transaction not found on specified network returns empty or error response
- Unsupported network/chain ID returns error
- Payment not confirmed via x402 results in 402 response blocking the call
- Calldata decoding may fail for unknown or unverified contract ABIs, lowering confidence score

## How this service works

Base tx receipt + decoded calldata (?tx=0x...)

## Output

Returns a JSON object containing the raw receipt fields (to, from, value, status, gasUsed, blockNumber), the decoded calldata with function signature and parameters, an asset_id, and a confidence score. Lets an agent verify what a transaction did without needing an API key.

## 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": {
  "service": "LION Verified Company",
  "asset_id": "LION",
  "resolved": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lion-tx-receipt-decoder-base-ethereum-2f011c30/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lionx402.com](https://www.zero.xyz/host/lionx402.com/llms.txt)
