# BOLT11 Lightning Invoice Decoder

> BOLT11 Lightning Invoice Decoder is a paid API for AI agents from pyfile-agent.taile3ff35.ts.net:10000, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Decodes a BOLT11-encoded Lightning Network invoice, extracting network, amount, payment hash, and description fields.

## Facts

- Endpoint: GET https://pyfile-agent.taile3ff35.ts.net:10000/data/bolt11/decode
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bolt11-lightning-invoice-decoder-4ff16cc9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zDkovWTM0_kprI7p06s9D

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 bolt11-lightning-invoice-decoder-4ff16cc9
```

Example prompt: Can you decode this Lightning invoice for me and tell me the amount, payment hash, and description: lnbc500n1p3qhlfxpp5...?

## When to prefer this

Use this endpoint when you need to inspect or validate a BOLT11 Lightning invoice before acting on it — especially to confirm the amount, recipient description, or payment hash without executing any payment. Prefer this over manual parsing libraries when operating in an agent context that requires a lightweight, stateless HTTP call.

## Known failure modes

- Invalid or malformed BOLT11 string returns a parse error
- Missing invoice query parameter results in a 400 bad request
- Expired invoices may still decode successfully but timestamp will indicate expiry
- Testnet invoices starting with lntb are valid but flagged as non-mainnet
- Checksum validation failure if invoice is truncated or corrupted

## How this service works

Decode a BOLT11 Lightning invoice (network, amount, payment_hash, description). ?invoice=lnbc...

## Output

A structured breakdown of the decoded BOLT11 Lightning invoice including: the network (mainnet/testnet), the amount in satoshis or millisatoshis, the payment hash (32-byte hex), and the human-readable description embedded in the invoice.

## 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",
     "properties": {
      "invoice": {
       "type": "string"
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bolt11-lightning-invoice-decoder-4ff16cc9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pyfile-agent.taile3ff35.ts.net:10000](https://www.zero.xyz/host/pyfile-agent.taile3ff35.ts.net%3A10000/llms.txt)
