TwoTuple_PaymentHashPaymentSecretZ |
ChannelManager.create_inbound_payment(Option_u64Z min_value_msat,
int invoice_expiry_delta_secs,
long user_payment_id) |
Gets a payment secret and payment hash for use in an invoice given to a third party wishing
to pay us.
|
Result_PaymentSecretAPIErrorZ |
ChannelManager.create_inbound_payment_for_hash(byte[] payment_hash,
Option_u64Z min_value_msat,
int invoice_expiry_delta_secs,
long user_payment_id) |
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,
KeysInterface keys_manager,
Currency network,
Option_u64Z amt_msat,
String description) |
Utility to construct an invoice.
|
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_id_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 ChannelInfo |
ChannelInfo.of(ChannelFeatures features_arg,
byte[] node_one_arg,
DirectionalChannelInfo one_to_two_arg,
byte[] node_two_arg,
DirectionalChannelInfo two_to_one_arg,
Option_u64Z capacity_sats_arg,
ChannelAnnouncement announcement_message_arg) |
Constructs a new ChannelInfo given each field
|
static DirectionalChannelInfo |
DirectionalChannelInfo.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 DirectionalChannelInfo 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
|
void |
ChannelInfo.set_capacity_sats(Option_u64Z val) |
The channel capacity as seen on-chain, if chain lookup is available.
|
void |
DirectionalChannelInfo.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.
|