{"uid":"cap_0RToPtfuwUDB9MSSPOVCb","slug":"bolt11-lightning-invoice-decoder-069cdf80","name":"BOLT11 Lightning Invoice Decoder","description":"Decode a BOLT11 Lightning invoice (network, amount, payment_hash, description). ?invoice=lnbc...","url":"https://pyfile-agent.taile3ff35.ts.net/data/bolt11/decode","method":"GET","headers":{},"bodySchema":{"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"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-_3KfkdxmC8q7vsu0wFLA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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 invoice string into its components: network, amount, payment hash, and description.","exampleAgentPrompt":"Can you decode this Lightning invoice for me and tell me the amount, network, payment hash, and description: lnbc500n1p3qhvqzpp5...?","exampleUseCases":[{"title":"Verify payment amount before paying","prompt":"Before I pay this Lightning invoice, can you decode it and tell me what amount it's requesting and what the description says? The invoice is lnbc1500n1pj9qhvqzpp5..."},{"title":"Extract payment hash for record keeping","prompt":"I need the payment hash from this BOLT11 invoice for my records — can you decode lnbc250u1p3abc123... and pull out the payment_hash field?"},{"title":"Check which Lightning network an invoice is for","prompt":"Is this a mainnet or testnet Lightning invoice? Can you decode lntb10m1p0n3abc... and tell me which network it's on?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:43:09.777Z","isFirstParty":false}