{"uid":"cap_rPtEMChE7jq6iM7-ntlau","slug":"tanod-chainpeek-bolt11-lightning-invoice-decoder-192056d0","name":"Tanod chainpeek BOLT11 Lightning Invoice Decoder","description":"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.","url":"https://tanod.dev/v1/chain/bolt11/decode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_e7kaID-MSf82j5IqRUXUs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes a BOLT11 Lightning Network payment request string into its component fields: amount, payee, payment hash, expiry, and route hints.","exampleAgentPrompt":"Can you decode this Lightning invoice for me and tell me the amount, payee, expiry, and payment hash? Here's the invoice: lnbc500n1p3zqeqxpp5...","exampleUseCases":[{"title":"Pre-payment invoice inspection","prompt":"Before I send this Lightning payment, decode the invoice lnbc2500u1pvjluezpp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqpqdq5xysxxatsyp3k7enxv4jsxqzpusp5zyg3zyg3zyg3zyg3zyg3zyg3zyg3zyg and tell me the amount, who it's going to, and when it expires."},{"title":"Agent Lightning wallet automation","prompt":"I need to confirm the payment hash and payee for this BOLT11 invoice before my payment bot authorizes it — can you parse it and return those fields? Invoice: lntb1500n1pd7lm5mpp5..."},{"title":"Invoice expiry check","prompt":"Check if this Lightning invoice has already expired or is still valid — decode lnbc1pvjluezpp5qqqsyqcyq5rqwzqfqqqsyqcyq5 and give me the expiry time and amount."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:43:26.860Z","isFirstParty":false,"canonicalSlug":"tanod-chainpeek-bolt11-lightning-invoice-decoder-192056d0"}