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.
|
Result_PaymentSecretAPIErrorZ |
ChannelManager.create_inbound_payment_for_hash_legacy(byte[] payment_hash,
Option_u64Z min_value_msat,
int invoice_expiry_delta_secs) |
Legacy version of [`create_inbound_payment_for_hash`].
|
Result_C2Tuple_PaymentHashPaymentSecretZAPIErrorZ |
ChannelManager.create_inbound_payment_legacy(Option_u64Z min_value_msat,
int invoice_expiry_delta_secs) |
Legacy version of [`create_inbound_payment`].
|
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 ChannelCounterparty |
ChannelCounterparty.of(byte[] node_id_arg,
InitFeatures features_arg,
long unspendable_punishment_reserve_arg,
CounterpartyForwardingInfo forwarding_info_arg,
Option_u64Z outbound_htlc_minimum_msat_arg,
Option_u64Z outbound_htlc_maximum_msat_arg) |
Constructs a new ChannelCounterparty given each field
|
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
|
static ChannelReady |
ChannelReady.of(byte[] channel_id_arg,
byte[] next_per_commitment_point_arg,
Option_u64Z short_channel_id_alias_arg) |
Constructs a new ChannelReady given each field
|
static PaymentParameters |
PaymentParameters.of(byte[] payee_pubkey_arg,
InvoiceFeatures features_arg,
Hints route_hints_arg,
Option_u64Z expiry_time_arg,
int max_total_cltv_expiry_delta_arg,
byte max_path_count_arg,
byte max_channel_saturation_power_of_half_arg,
long[] previously_failed_channels_arg,
int final_cltv_expiry_delta_arg) |
Constructs a new PaymentParameters given each field
|
static RouteHintHop |
RouteHintHop.of(byte[] src_node_id_arg,
long short_channel_id_arg,
RoutingFees fees_arg,
short cltv_expiry_delta_arg,
Option_u64Z htlc_minimum_msat_arg,
Option_u64Z htlc_maximum_msat_arg) |
Constructs a new RouteHintHop given each field
|
static Event |
Event.payment_forwarded(byte[] prev_channel_id,
byte[] next_channel_id,
Option_u64Z fee_earned_msat,
boolean claim_from_onchain_tx,
Option_u64Z outbound_amount_forwarded_msat) |
Utility method to constructs a new PaymentForwarded-variant Event
|
static Event |
Event.payment_path_failed(byte[] payment_id,
byte[] payment_hash,
boolean payment_failed_permanently,
PathFailure failure,
Path path,
Option_u64Z short_channel_id) |
Utility method to constructs a new PaymentPathFailed-variant Event
|
static Event |
Event.payment_sent(byte[] payment_id,
byte[] payment_preimage,
byte[] payment_hash,
Option_u64Z fee_paid_msat) |
Utility method to constructs a new PaymentSent-variant Event
|
static Event |
Event.probe_failed(byte[] payment_id,
byte[] payment_hash,
Path path,
Option_u64Z short_channel_id) |
Utility method to constructs a new ProbeFailed-variant Event
|
void |
ChannelInfo.set_capacity_sats(Option_u64Z val) |
The channel capacity as seen on-chain, if chain lookup is available.
|
void |
PaymentParameters.set_expiry_time(Option_u64Z val) |
Expiration of a payment to the payee, in seconds relative to the UNIX epoch.
|
void |
RouteHintHop.set_htlc_maximum_msat(Option_u64Z val) |
The maximum value in msat available for routing with a single HTLC.
|
void |
RouteHintHop.set_htlc_minimum_msat(Option_u64Z val) |
The minimum value, in msat, which must be relayed to the next hop.
|
void |
ChannelDetails.set_inbound_htlc_maximum_msat(Option_u64Z val) |
The largest value HTLC (in msat) we currently will accept, for this channel.
|
void |
ChannelDetails.set_inbound_htlc_minimum_msat(Option_u64Z val) |
The smallest value HTLC (in msat) we will accept, for this channel.
|
void |
ChannelDetails.set_inbound_scid_alias(Option_u64Z val) |
An optional [`short_channel_id`] alias for this channel, randomly generated by our
counterparty and usable in place of [`short_channel_id`] in invoice route hints.
|
void |
ChannelCounterparty.set_outbound_htlc_maximum_msat(Option_u64Z val) |
The largest value HTLC (in msat) the remote peer currently will accept, for this channel.
|
void |
ChannelCounterparty.set_outbound_htlc_minimum_msat(Option_u64Z val) |
The smallest value HTLC (in msat) the remote peer will accept, for this channel.
|
void |
ChannelDetails.set_outbound_scid_alias(Option_u64Z val) |
An optional [`short_channel_id`] alias for this channel, randomly generated by us and
usable in place of [`short_channel_id`] to reference the channel in outbound routes when
the channel has not yet been confirmed (as long as [`confirmations_required`] is
`Some(0)`).
|
void |
ChannelDetails.set_short_channel_id(Option_u64Z val) |
The position of the funding transaction in the chain.
|
void |
ChannelReady.set_short_channel_id_alias(Option_u64Z val) |
If set, provides a `short_channel_id` alias for this channel.
|
void |
ChannelDetails.set_unspendable_punishment_reserve(Option_u64Z val) |
The value, in satoshis, that must always be held in the channel for us.
|
Result_u32GraphSyncErrorZ |
RapidGossipSync.update_network_graph_no_std(byte[] update_data,
Option_u64Z current_time_unix) |
Update network graph from binary data.
|