Result_C2Tuple_PaymentHashPaymentSecretZNoneZ |
ChannelManager.create_inbound_payment(Option_u64Z min_value_msat,
int invoice_expiry_delta_secs) |
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) |
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,
KeysInterface keys_manager,
Currency network,
Option_u64Z amt_msat,
String description) |
Utility to construct an invoice.
|
static Result_InvoiceSignOrCreationErrorZ |
UtilMethods.create_invoice_from_channelmanager_and_duration_since_epoch(ChannelManager channelmanager,
KeysInterface keys_manager,
Currency network,
Option_u64Z amt_msat,
String description,
long duration_since_epoch) |
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_phantom_invoice(Option_u64Z amt_msat,
String description,
byte[] payment_hash,
byte[] payment_secret,
PhantomRouteHints[] phantom_route_hints,
KeysInterface keys_manager,
Currency network) |
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,
Option_u64Z short_channel_id_arg,
long channel_value_satoshis_arg,
Option_u64Z unspendable_punishment_reserve_arg,
long user_channel_id_arg,
long balance_msat_arg,
long outbound_capacity_msat_arg,
long inbound_capacity_msat_arg,
Option_u32Z confirmations_required_arg,
Option_u16Z force_close_spend_delay_arg,
boolean is_outbound_arg,
boolean is_funding_locked_arg,
boolean is_usable_arg,
boolean is_public_arg) |
Constructs a new ChannelDetails given each field
|
static ChannelUpdateInfo |
ChannelUpdateInfo.of(int last_update_arg,
boolean enabled_arg,
short cltv_expiry_delta_arg,
long htlc_minimum_msat_arg,
Option_u64Z htlc_maximum_msat_arg,
RoutingFees fees_arg,
ChannelUpdate last_update_message_arg) |
Constructs a new ChannelUpdateInfo given each field
|
static PaymentParameters |
PaymentParameters.of(byte[] payee_pubkey_arg,
InvoiceFeatures features_arg,
RouteHint[] route_hints_arg,
Option_u64Z expiry_time_arg,
int max_total_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(Option_u64Z fee_earned_msat,
boolean claim_from_onchain_tx) |
Utility method to constructs a new PaymentForwarded-variant Event
|
static Event |
Event.payment_path_failed(byte[] payment_id,
byte[] payment_hash,
boolean rejected_by_dest,
Option_NetworkUpdateZ network_update,
boolean all_paths_failed,
RouteHop[] path,
Option_u64Z short_channel_id,
RouteParameters retry) |
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
|
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 |
ChannelUpdateInfo.set_htlc_maximum_msat(Option_u64Z val) |
The maximum value which may be relayed to the next hop via the channel.
|
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_short_channel_id(Option_u64Z val) |
The position of the funding transaction in the chain.
|
void |
ChannelDetails.set_unspendable_punishment_reserve(Option_u64Z val) |
The value, in satoshis, that must always be held in the channel for us.
|