Could the user who generates the invoice not just delete their secret so the payment would not be successful? Maybe there is a more eloquent way that wouldn't result in users funds being stuck for a period of time though but is cancelling a lightning invoice possible?

1 Answer 1


Yes. The payments on the Lightning Network are necessarily interactive, therefore the payee can just refuse the incoming payment.

Invoices are configured with an expiration date, such as the sender's wallet can warn the user if it has expired: no need to try to pay since the payee will just refuse the payment for sure.

  • @RenePickhardt C-lightning does via delinvoice. If you delete an invoice before it's expired, your node will effectively refuse the incoming payment. So you somehow "canceled" it. Feb 10, 2022 at 12:13
  • just deleted my comment. maybe you can add your comment to your response. I missed that API. Feb 10, 2022 at 21:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.