Module payment
Expand description
Convenient utilities for paying Lightning invoices.
Enums§
- Payment
Error - An error that may occur when making a payment.
- Probing
Error - An error that may occur when sending a payment probe.
Functions§
- pay_
invoice - Pays the given
Bolt11Invoice
, retrying if needed based onRetry
. - pay_
invoice_ with_ id - Pays the given
Bolt11Invoice
with a custom idempotency key, retrying if needed based onRetry
. - pay_
zero_ value_ invoice - Pays the given zero-value
Bolt11Invoice
using the given amount, retrying if needed based onRetry
. - pay_
zero_ value_ invoice_ with_ id - Pays the given zero-value
Bolt11Invoice
using the given amount and custom idempotency key, retrying if needed based onRetry
. - preflight_
probe_ invoice - Sends payment probes over all paths of a route that would be used to pay the given invoice.
- preflight_
probe_ zero_ value_ invoice - Sends payment probes over all paths of a route that would be used to pay the given zero-value invoice using the given amount.