# Tanod chainpeek BOLT11 Lightning Invoice Decoder

> Tanod chainpeek BOLT11 Lightning Invoice Decoder is a paid API for AI agents from tanod.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-18).

Decodes a BOLT11 Lightning Network payment request string into its component fields: amount, payee, payment hash, expiry, and route hints.

## Facts

- Endpoint: POST https://tanod.dev/v1/chain/bolt11/decode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanod-chainpeek-bolt11-lightning-invoice-decoder-192056d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rPtEMChE7jq6iM7-ntlau

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 tanod-chainpeek-bolt11-lightning-invoice-decoder-192056d0 -d '<json body>'
```

Example prompt: Can you decode this Lightning invoice for me and tell me the amount, payee, expiry, and payment hash? Here's the invoice: lnbc500n1p3zqeqxpp5...

## When to prefer this

Use this endpoint when an AI agent needs to safely inspect a Lightning Network BOLT11 invoice string before authorizing payment — to confirm the amount, recipient, expiry, and payment hash without making any network call or spending funds. It is a pure computation endpoint with no side effects, ideal for pre-payment validation workflows.

## Known failure modes

- Invalid or malformed BOLT11 string returns a parsing error
- Invoice string that is too short (under 10 chars) or too long (over 6000 chars) is rejected
- Unsupported network prefix (not lnbc, lntb, lntbs, or lnbcrt) may fail
- Checksum mismatch in the invoice causes a decode error
- Empty or null invoice field returns a validation error

## How this service works

chainpeek (Tanod) Lightning invoice decoder: BOLT11 payment request to amount, payee, payment hash, expiry and route hints. Pure computation. Use when an agent must read a Lightning invoice (lnbc...) before paying it: amount, payee, expiry, payment hash.

## Output

A structured breakdown of the BOLT11 invoice including the payment amount in millisatoshis (and converted units), payee public key, payment hash, expiry timestamp, description, and any route hints embedded in the invoice.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "invoice": {
   "type": "string",
   "maxLength": 6000,
   "minLength": 10,
   "description": "A BOLT11 Lightning invoice (lnbc..., lntb..., lntbs... or lnbcrt...); an optional 'lightning:' prefix and upper case are accepted."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanod-chainpeek-bolt11-lightning-invoice-decoder-192056d0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tanod.dev](https://www.zero.xyz/host/tanod.dev/llms.txt)
