static Result_C2Tuple_PaymentHashPaymentSecretZNoneZ |
UtilMethods.create(ExpandedKey keys,
Option_u64Z min_value_msat,
int invoice_expiry_delta_secs,
EntropySource entropy_source,
long current_time,
Option_u16Z min_final_cltv_expiry_delta) |
Equivalent to [`crate::ln::channelmanager::ChannelManager::create_inbound_payment`], but no
`ChannelManager` is required.
|
static Result_PaymentSecretNoneZ |
UtilMethods.create_from_hash(ExpandedKey keys,
Option_u64Z min_value_msat,
byte[] payment_hash,
int invoice_expiry_delta_secs,
long current_time,
Option_u16Z min_final_cltv_expiry_delta) |
Equivalent to [`crate::ln::channelmanager::ChannelManager::create_inbound_payment_for_hash`],
but no `ChannelManager` is required.
|
Result_C2Tuple_PaymentHashPaymentSecretZNoneZ |
ChannelManager.create_inbound_payment(Option_u64Z min_value_msat,
int invoice_expiry_delta_secs,
Option_u16Z min_final_cltv_expiry_delta) |
Gets a payment secret and payment hash for use in an invoice given to a third party wishing
to pay us.
|
Result_PaymentSecretNoneZ |
ChannelManager.create_inbound_payment_for_hash(byte[] payment_hash,
Option_u64Z min_value_msat,
int invoice_expiry_delta_secs,
Option_u16Z min_final_cltv_expiry) |
Gets a [`PaymentSecret`] for a given [`PaymentHash`], for which the payment preimage is
stored external to LDK.
|
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_InvoiceSignOrCreationErrorZ |
UtilMethods.create_phantom_invoice(Option_u64Z amt_msat,
byte[] payment_hash,
String description,
int invoice_expiry_delta_secs,
PhantomRouteHints[] phantom_route_hints,
EntropySource entropy_source,
NodeSigner node_signer,
Logger logger,
Currency network,
Option_u16Z min_final_cltv_expiry_delta,
long duration_since_epoch) |
Utility to create an invoice that can be paid to one of multiple nodes, or a \"phantom invoice.\"
See [`PhantomKeysManager`] for more information on phantom node payments.
|
static Result_InvoiceSignOrCreationErrorZ |
UtilMethods.create_phantom_invoice_with_description_hash(Option_u64Z amt_msat,
byte[] payment_hash,
int invoice_expiry_delta_secs,
Sha256 description_hash,
PhantomRouteHints[] phantom_route_hints,
EntropySource entropy_source,
NodeSigner node_signer,
Logger logger,
Currency network,
Option_u16Z min_final_cltv_expiry_delta,
long duration_since_epoch) |
Utility to create an invoice that can be paid to one of multiple nodes, or a \"phantom invoice.\"
See [`PhantomKeysManager`] for more information on phantom node payments.
|
static ChannelDetails |
ChannelDetails.of(byte[] channel_id_arg,
ChannelCounterparty counterparty_arg,
OutPoint funding_txo_arg,
ChannelTypeFeatures channel_type_arg,
Option_u64Z short_channel_id_arg,
Option_u64Z outbound_scid_alias_arg,
Option_u64Z inbound_scid_alias_arg,
long channel_value_satoshis_arg,
Option_u64Z unspendable_punishment_reserve_arg,
UInt128 user_channel_id_arg,
Option_u32Z feerate_sat_per_1000_weight_arg,
long balance_msat_arg,
long outbound_capacity_msat_arg,
long next_outbound_htlc_limit_msat_arg,
long inbound_capacity_msat_arg,
Option_u32Z confirmations_required_arg,
Option_u32Z confirmations_arg,
Option_u16Z force_close_spend_delay_arg,
boolean is_outbound_arg,
boolean is_channel_ready_arg,
boolean is_usable_arg,
boolean is_public_arg,
Option_u64Z inbound_htlc_minimum_msat_arg,
Option_u64Z inbound_htlc_maximum_msat_arg,
ChannelConfig config_arg) |
Constructs a new ChannelDetails given each field
|
void |
ChannelDetails.set_force_close_spend_delay(Option_u16Z val) |
The number of blocks (after our commitment transaction confirms) that we will need to wait
until we can claim our funds after we force-close the channel.
|