# BOLT11 Lightning Invoice Decoder

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

Decodes a BOLT11 Lightning Network invoice string into its components: network, amount, payment hash, and description.

## Facts

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

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-069cdf80
```

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

## When to prefer this

Use this endpoint when you need to programmatically inspect a BOLT11 Lightning invoice without paying it — ideal for extracting payment metadata, verifying amounts before payment, logging payment hashes, or distinguishing mainnet from testnet invoices. Prefer this over manual parsing when automating Lightning payment workflows.

## Known failure modes

- Invalid or malformed BOLT11 string returns an error
- Missing invoice query parameter causes a bad request response
- Expired invoices may still decode successfully but are flagged as expired
- Non-BOLT11 strings (e.g. Bitcoin addresses) will fail to parse

## How this service works

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

## Output

Returns the decoded fields of the BOLT11 invoice including: the Lightning network (mainnet/testnet), the invoice amount in millisatoshis or satoshis, the payment hash (SHA-256 preimage hash), and the human-readable description/memo attached to 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-069cdf80/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pyfile-agent.taile3ff35.ts.net](https://www.zero.xyz/host/pyfile-agent.taile3ff35.ts.net/llms.txt)
