static Result_InvoiceSignOrCreationErrorZ |
UtilMethods.create_invoice_from_channelmanager(ChannelManager channelmanager,
NodeSigner node_signer,
Logger logger,
Currency network,
Option_u64Z amt_msat,
String description,
int invoice_expiry_delta_secs,
Option_u16Z min_final_cltv_expiry_delta) |
Utility to construct an invoice.
|
static Result_InvoiceSignOrCreationErrorZ |
UtilMethods.create_invoice_from_channelmanager_and_duration_since_epoch(ChannelManager channelmanager,
NodeSigner node_signer,
Logger logger,
Currency network,
Option_u64Z amt_msat,
String description,
long duration_since_epoch,
int invoice_expiry_delta_secs,
Option_u16Z min_final_cltv_expiry_delta) |
See [`create_invoice_from_channelmanager`]
This version can be used in a `no_std` environment, where [`std::time::SystemTime`] is not
available and the current time is supplied by the caller.
|
static Result_InvoiceSignOrCreationErrorZ |
UtilMethods.create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash(ChannelManager channelmanager,
NodeSigner node_signer,
Logger logger,
Currency network,
Option_u64Z amt_msat,
String description,
long duration_since_epoch,
int invoice_expiry_delta_secs,
byte[] payment_hash,
Option_u16Z min_final_cltv_expiry_delta) |
See [`create_invoice_from_channelmanager_and_duration_since_epoch`]
This version allows for providing a custom [`PaymentHash`] for the invoice.
|
static Result_InvoiceSignOrCreationErrorZ |
UtilMethods.create_invoice_from_channelmanager_with_description_hash(ChannelManager channelmanager,
NodeSigner node_signer,
Logger logger,
Currency network,
Option_u64Z amt_msat,
Sha256 description_hash,
int invoice_expiry_delta_secs,
Option_u16Z min_final_cltv_expiry_delta) |
Utility to construct an invoice.
|
static Result_InvoiceSignOrCreationErrorZ |
UtilMethods.create_invoice_from_channelmanager_with_description_hash_and_duration_since_epoch(ChannelManager channelmanager,
NodeSigner node_signer,
Logger logger,
Currency network,
Option_u64Z amt_msat,
Sha256 description_hash,
long duration_since_epoch,
int invoice_expiry_delta_secs,
Option_u16Z min_final_cltv_expiry_delta) |
See [`create_invoice_from_channelmanager_with_description_hash`]
This version can be used in a `no_std` environment, where [`std::time::SystemTime`] is not
available and the current time is supplied by the caller.
|
static Result_PaymentIdPaymentErrorZ |
UtilMethods.pay_invoice(Invoice invoice,
Retry retry_strategy,
ChannelManager channelmanager) |
Pays the given [`Invoice`], retrying if needed based on [`Retry`].
|
static Result_NonePaymentErrorZ |
UtilMethods.pay_invoice_with_id(Invoice invoice,
byte[] payment_id,
Retry retry_strategy,
ChannelManager channelmanager) |
Pays the given [`Invoice`] with a custom idempotency key, retrying if needed based on [`Retry`].
|
static Result_PaymentIdPaymentErrorZ |
UtilMethods.pay_zero_value_invoice(Invoice invoice,
long amount_msats,
Retry retry_strategy,
ChannelManager channelmanager) |
Pays the given zero-value [`Invoice`] using the given amount, retrying if needed based on
[`Retry`].
|
static Result_NonePaymentErrorZ |
UtilMethods.pay_zero_value_invoice_with_id(Invoice invoice,
long amount_msats,
byte[] payment_id,
Retry retry_strategy,
ChannelManager channelmanager) |
Pays the given zero-value [`Invoice`] using the given amount and custom idempotency key,
, retrying if needed based on [`Retry`].
|
Result_NoneErrorZ |
Persister.persist_manager(ChannelManager channel_manager) |
Persist the given ['ChannelManager'] to disk, returning an error if persistence failed.
|
Result_NoneErrorZ |
Persister.PersisterInterface.persist_manager(ChannelManager channel_manager) |
Persist the given ['ChannelManager'] to disk, returning an error if persistence failed.
|
static BackgroundProcessor |
BackgroundProcessor.start(Persister persister,
EventHandler event_handler,
ChainMonitor chain_monitor,
ChannelManager channel_manager,
GossipSync gossip_sync,
PeerManager peer_manager,
Logger logger,
Option_WriteableScoreZ scorer) |
Start a background thread that takes care of responsibilities enumerated in the [top-level
documentation].
|