Skip to content

Add decode invoice and offer RPCs#164

Open
benthecarman wants to merge 2 commits intolightningdevkit:mainfrom
benthecarman:decode-inv
Open

Add decode invoice and offer RPCs#164
benthecarman wants to merge 2 commits intolightningdevkit:mainfrom
benthecarman:decode-inv

Conversation

@benthecarman
Copy link
Collaborator

Adds a new DecodeInvoice endpoint that parses a BOLT11 invoice string and returns its fields (destination, payment_hash, amount, timestamp, expiry, description, route_hints, features, currency, etc.), similar to lncli's decodepayreq needed for thunderhub and zeus. Does the same for bolt 12 offers as well.

benthecarman and others added 2 commits March 20, 2026 17:48
Adds a new DecodeInvoice endpoint that parses a BOLT11 invoice string
and returns its fields (destination, payment_hash, amount, timestamp,
expiry, description, route_hints, features, currency, etc.), similar
to lncli's decodepayreq needed for thunderhub and zeus.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds a new DecodeOffer endpoint that parses a BOLT12 offer string and
returns its fields: offer_id, description, issuer, amount (bitcoin or
currency), issuer_signing_pubkey, absolute_expiry, supported_quantity,
blinded paths, features, chains, metadata, and expiry status.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Mar 20, 2026

I've assigned @wpaulino as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants