static byte[] |
UtilMethods.build_htlc_input_witness(byte[] local_sig,
byte[] remote_sig,
Option_ThirtyTwoBytesZ preimage,
byte[] redeem_script,
ChannelTypeFeatures channel_type_features) |
Returns the witness required to satisfy and spend a HTLC input.
|
static Event |
Event.channel_pending(byte[] channel_id,
UInt128 user_channel_id,
Option_ThirtyTwoBytesZ former_temporary_channel_id,
byte[] counterparty_node_id,
OutPoint funding_txo) |
Utility method to constructs a new ChannelPending-variant Event
|
static Result_Bolt11InvoiceSignOrCreationErrorZ |
UtilMethods.create_phantom_invoice(Option_u64Z amt_msat,
Option_ThirtyTwoBytesZ 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_Bolt11InvoiceSignOrCreationErrorZ |
UtilMethods.create_phantom_invoice_with_description_hash(Option_u64Z amt_msat,
Option_ThirtyTwoBytesZ 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 RecentPaymentDetails |
RecentPaymentDetails.fulfilled(byte[] payment_id,
Option_ThirtyTwoBytesZ payment_hash) |
Utility method to constructs a new Fulfilled-variant RecentPaymentDetails
|
static PaymentPurpose |
PaymentPurpose.invoice_payment(Option_ThirtyTwoBytesZ payment_preimage,
byte[] payment_secret) |
Utility method to constructs a new InvoicePayment-variant PaymentPurpose
|
static ChannelReestablish |
ChannelReestablish.of(byte[] channel_id_arg,
long next_local_commitment_number_arg,
long next_remote_commitment_number_arg,
byte[] your_last_per_commitment_secret_arg,
byte[] my_current_per_commitment_point_arg,
Option_ThirtyTwoBytesZ next_funding_txid_arg) |
Constructs a new ChannelReestablish given each field
|
static TwoTuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ |
TwoTuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ.of(byte[] a,
Option_ThirtyTwoBytesZ b) |
Creates a new C2Tuple_ThirtyTwoBytesCOption_ThirtyTwoBytesZZ from the contained elements.
|
static WatchedOutput |
WatchedOutput.of(Option_ThirtyTwoBytesZ block_hash_arg,
OutPoint outpoint_arg,
byte[] script_pubkey_arg) |
Constructs a new WatchedOutput given each field
|
static Event |
Event.payment_claimable(byte[] receiver_node_id,
byte[] payment_hash,
RecipientOnionFields onion_fields,
long amount_msat,
long counterparty_skimmed_fee_msat,
PaymentPurpose purpose,
Option_ThirtyTwoBytesZ via_channel_id,
Option_U128Z via_user_channel_id,
Option_u32Z claim_deadline) |
Utility method to constructs a new PaymentClaimable-variant Event
|
static Event |
Event.payment_forwarded(Option_ThirtyTwoBytesZ prev_channel_id,
Option_ThirtyTwoBytesZ 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(Option_ThirtyTwoBytesZ 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_path_successful(byte[] payment_id,
Option_ThirtyTwoBytesZ payment_hash,
Path path) |
Utility method to constructs a new PaymentPathSuccessful-variant Event
|
static Event |
Event.payment_sent(Option_ThirtyTwoBytesZ payment_id,
byte[] payment_preimage,
byte[] payment_hash,
Option_u64Z fee_paid_msat) |
Utility method to constructs a new PaymentSent-variant Event
|
Result_ThirtyTwoBytesPaymentSendFailureZ |
ChannelManager.send_spontaneous_payment(Route route,
Option_ThirtyTwoBytesZ payment_preimage,
RecipientOnionFields recipient_onion,
byte[] payment_id) |
Send a spontaneous payment, which is a payment that does not require the recipient to have
generated an invoice.
|
Result_ThirtyTwoBytesRetryableSendFailureZ |
ChannelManager.send_spontaneous_payment_with_retry(Option_ThirtyTwoBytesZ payment_preimage,
RecipientOnionFields recipient_onion,
byte[] payment_id,
RouteParameters route_params,
Retry retry_strategy) |
Similar to [`ChannelManager::send_spontaneous_payment`], but will automatically find a route
based on `route_params` and retry failed payment paths based on `retry_strategy`.
|
void |
WatchedOutput.set_block_hash(Option_ThirtyTwoBytesZ val) |
First block where the transaction output may have been spent.
|
void |
ChannelReestablish.set_next_funding_txid(Option_ThirtyTwoBytesZ val) |
The next funding transaction ID
|
void |
RecipientOnionFields.set_payment_secret(Option_ThirtyTwoBytesZ val) |
The [`PaymentSecret`] is an arbitrary 32 bytes provided by the recipient for us to repeat
in the onion.
|
void |
HTLCDescriptor.set_preimage(Option_ThirtyTwoBytesZ val) |
The preimage, if `Some`, to claim the HTLC output with.
|
static Event |
Event.spendable_outputs(SpendableOutputDescriptor[] outputs,
Option_ThirtyTwoBytesZ channel_id) |
Utility method to constructs a new SpendableOutputs-variant Event
|