Repository navigation
feat: lexe.pay invoices/offers with BOLT12 payer proofs - #1
Merged
Merged
Conversation
Add lexe.pay and lexe.analyze so an MCP client can pay a BOLT11 invoice or BOLT12 offer from the caller's Lexe node. Settled offer pays mint a sidecar payer proof and return proof_url on lnproof.space. On-chain sends are refused. L402 receive hop is unchanged. Co-authored-by: Vincenzo Palazzo <vincenzopalazzo@member.fsf.org>
cursor
Bot
force-pushed
the
cursor/outbound-pay-brainstorm-e0b5
branch
from
September 12, 2026 00:26
b087c83 to
6d132e8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal: Let an MCP client say “pay this invoice
<lnbc…|lno1…>” and have lexe-mcp send from the caller’s Lexe node.L402 is unchanged and out of scope for this work.
What landed
lexe.pay— passinvoiceoroffer(BOLT11lnbc…or BOLT12lno1…). Analyzes via sidecar, refuses on-chain, thenPOST /v2/node/pay_invoice/pay_offer/pay_lnurl. Amountless strings needamount_sats.create_payer_proofand returnproof(lnp1…) plusproof_urlhttps://lnproof.space/lnp1…. A proof failure does not undo the payment (proof_error).lexe.analyze— decode without sending.payMaxSats/LEXE_PAY_MAX_SATS(default0= no cap).lexe.create_invoice. Missing identity isisError: true.go test,tools/listincludeslexe.pay, unpaidlexe.paygrepsmissing Lexe identity.Usage
Then
lexe.check_paymentwith the returnedindex. For offer pays, openproof_urlon lnproof.space.Brainstorm:
docs/brainstorms/2026-09-11-outbound-analyze-and-pay.md