Skip to content

cli: add hold invoice cli functionality #9685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

f321x
Copy link
Member

@f321x f321x commented Mar 31, 2025

Adds four new commands to the CLI which allow handling hold invoices

  • add_hold_invoice
  • cancel_hold_invoice
  • check_hold_invoice
  • settle_hold_invoice

add_hold_invoice also allows for registration of an external http endpoint as callback.
Users have to bring their own preimage.

@f321x f321x force-pushed the hold_invoice_cli branch 3 times, most recently from 4a97a3b to a57b542 Compare April 10, 2025 11:39
@f321x f321x force-pushed the hold_invoice_cli branch from a57b542 to 4c870d3 Compare April 22, 2025 16:12
@f321x f321x marked this pull request as ready for review April 22, 2025 16:21
@f321x f321x force-pushed the hold_invoice_cli branch from 4c870d3 to 6210f04 Compare April 23, 2025 15:21
memo = "",
expiry = 3600,
min_final_cltv_expiry_delta = MIN_FINAL_CLTV_DELTA_FOR_INVOICE * 2,
callback_url = None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need to support callback_url?
I thought the idea was to let the user poll using check_hold_invoice.
if we drop this option, I believe we do not need to add a new persisted dict for cli_hold_invoice_callbacks

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