Result_NoneAPIErrorZ |
ChannelManager.accept_inbound_channel(byte[] temporary_channel_id,
byte[] counterparty_node_id,
UInt128 user_channel_id) |
Accepts a request to open a channel after a [`Event::OpenChannelRequest`].
|
Result_NoneAPIErrorZ |
ChannelManager.accept_inbound_channel_from_trusted_peer_0conf(byte[] temporary_channel_id,
byte[] counterparty_node_id,
UInt128 user_channel_id) |
Accepts a request to open a channel after a [`events::Event::OpenChannelRequest`], treating
it as confirmed immediately.
|
static Event |
Event.channel_closed(byte[] channel_id,
UInt128 user_channel_id,
ClosureReason reason) |
Utility method to constructs a new ChannelClosed-variant Event
|
static Event |
Event.channel_pending(byte[] channel_id,
UInt128 user_channel_id,
byte[] former_temporary_channel_id,
byte[] counterparty_node_id,
OutPoint funding_txo) |
Utility method to constructs a new ChannelPending-variant Event
|
static Event |
Event.channel_ready(byte[] channel_id,
UInt128 user_channel_id,
byte[] counterparty_node_id,
ChannelTypeFeatures channel_type) |
Utility method to constructs a new ChannelReady-variant Event
|
Result__u832APIErrorZ |
ChannelManager.create_channel(byte[] their_network_key,
long channel_value_satoshis,
long push_msat,
UInt128 user_channel_id,
UserConfig override_config) |
Creates a new outbound channel to the given remote node and with the given value.
|
static Event |
Event.funding_generation_ready(byte[] temporary_channel_id,
byte[] counterparty_node_id,
long channel_value_satoshis,
byte[] output_script,
UInt128 user_channel_id) |
Utility method to constructs a new FundingGenerationReady-variant Event
|
byte[] |
SignerProvider.generate_channel_keys_id(boolean inbound,
long channel_value_satoshis,
UInt128 user_channel_id) |
Generates a unique `channel_keys_id` that can be used to obtain a [`Self::Signer`] through
[`SignerProvider::derive_channel_signer`].
|
byte[] |
SignerProvider.SignerProviderInterface.generate_channel_keys_id(boolean inbound,
long channel_value_satoshis,
UInt128 user_channel_id) |
Generates a unique `channel_keys_id` that can be used to obtain a [`Self::Signer`] through
[`SignerProvider::derive_channel_signer`].
|
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_user_channel_id(UInt128 val) |
The `user_channel_id` passed in to create_channel, or a random value if the channel was
inbound.
|
static Option_u128Z |
Option_u128Z.some(UInt128 o) |
Constructs a new COption_u128Z containing a crate::c_types::U128
|
static byte[] |
UtilMethods.U128_le_bytes(UInt128 val) |
Gets the 128-bit integer, as 16 little-endian bytes
|