{"uid":"cap_zDkovWTM0_kprI7p06s9D","slug":"bolt11-lightning-invoice-decoder-4ff16cc9","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:10000/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_HbPhlvG8fXSE4Ug1m1rUM","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-encoded Lightning Network invoice, extracting network, amount, payment hash, and description fields.","exampleAgentPrompt":"Can you decode this Lightning invoice for me and tell me the amount, payment hash, and description: lnbc500n1p3qhlfxpp5...?","exampleUseCases":[{"title":"Verify Lightning payment amount before paying","prompt":"I got this Lightning invoice from a vendor: lnbc1500u1p3xyz... — can you decode it and tell me how much it's asking for and what the description says before I pay?"},{"title":"Extract payment hash for reconciliation","prompt":"I need to pull the payment hash out of this BOLT11 invoice for my accounting records: lnbc250m1pvjluezpp5... — can you decode it and give me the hash?"},{"title":"Check which network a Lightning invoice is on","prompt":"Is this Lightning invoice for mainnet or testnet? Here it is: lntb100n1p3abc... — please decode it and tell me the network and any other details."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:13:58.960Z","isFirstParty":false}