pub struct BatchOpenChannel {Show 20 fields
pub node_pubkey: Vec<u8>,
pub local_funding_amount: i64,
pub push_sat: i64,
pub private: bool,
pub min_htlc_msat: i64,
pub remote_csv_delay: u32,
pub close_address: String,
pub pending_chan_id: Vec<u8>,
pub commitment_type: i32,
pub remote_max_value_in_flight_msat: u64,
pub remote_max_htlcs: u32,
pub max_local_csv: u32,
pub zero_conf: bool,
pub scid_alias: bool,
pub base_fee: u64,
pub fee_rate: u64,
pub use_base_fee: bool,
pub use_fee_rate: bool,
pub remote_chan_reserve_sat: u64,
pub memo: String,
}Fields§
§node_pubkey: Vec<u8>The pubkey of the node to open a channel with. When using REST, this field must be encoded as base64.
local_funding_amount: i64The number of satoshis the wallet should commit to the channel.
push_sat: i64The number of satoshis to push to the remote side as part of the initial commitment state.
private: boolWhether this channel should be private, not announced to the greater network.
min_htlc_msat: i64The minimum value in millisatoshi we will require for incoming HTLCs on the channel.
remote_csv_delay: u32The delay we require on the remote’s commitment transaction. If this is not set, it will be scaled automatically with the channel size.
close_address: StringClose address is an optional address which specifies the address to which funds should be paid out to upon cooperative close. This field may only be set if the peer supports the option upfront feature bit (call listpeers to check). The remote peer will only accept cooperative closes to this address if it is set.
Note: If this value is set on channel creation, you will not be able to cooperatively close out to a different address.
pending_chan_id: Vec<u8>An optional, unique identifier of 32 random bytes that will be used as the pending channel ID to identify the channel while it is in the pre-pending state.
commitment_type: i32The explicit commitment type to use. Note this field will only be used if the remote peer supports explicit channel negotiation.
remote_max_value_in_flight_msat: u64The maximum amount of coins in millisatoshi that can be pending within the channel. It only applies to the remote party.
remote_max_htlcs: u32The maximum number of concurrent HTLCs we will allow the remote party to add to the commitment transaction.
max_local_csv: u32Max local csv is the maximum csv delay we will allow for our own commitment transaction.
zero_conf: boolIf this is true, then a zero-conf channel open will be attempted.
scid_alias: boolIf this is true, then an option-scid-alias channel-type open will be attempted.
base_fee: u64The base fee charged regardless of the number of milli-satoshis sent.
fee_rate: u64The fee rate in ppm (parts per million) that will be charged in proportion of the value of each forwarded HTLC.
use_base_fee: boolIf use_base_fee is true the open channel announcement will update the channel base fee with the value specified in base_fee. In the case of a base_fee of 0 use_base_fee is needed downstream to distinguish whether to use the default base fee value specified in the config or 0.
use_fee_rate: boolIf use_fee_rate is true the open channel announcement will update the channel fee rate with the value specified in fee_rate. In the case of a fee_rate of 0 use_fee_rate is needed downstream to distinguish whether to use the default fee rate value specified in the config or 0.
remote_chan_reserve_sat: u64The number of satoshis we require the remote peer to reserve. This value, if specified, must be above the dust limit and below 20% of the channel capacity.
memo: StringAn optional note-to-self to go along with the channel containing some useful information. This is only ever stored locally and in no way impacts the channel’s operation.
Implementations§
Source§impl BatchOpenChannel
impl BatchOpenChannel
Sourcepub fn commitment_type(&self) -> CommitmentType
pub fn commitment_type(&self) -> CommitmentType
Returns the enum value of commitment_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_commitment_type(&mut self, value: CommitmentType)
pub fn set_commitment_type(&mut self, value: CommitmentType)
Sets commitment_type to the provided enum value.
Trait Implementations§
Source§impl Clone for BatchOpenChannel
impl Clone for BatchOpenChannel
Source§fn clone(&self) -> BatchOpenChannel
fn clone(&self) -> BatchOpenChannel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BatchOpenChannel
impl Debug for BatchOpenChannel
Source§impl Default for BatchOpenChannel
impl Default for BatchOpenChannel
Source§impl Hash for BatchOpenChannel
impl Hash for BatchOpenChannel
Source§impl Message for BatchOpenChannel
impl Message for BatchOpenChannel
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for BatchOpenChannel
impl PartialEq for BatchOpenChannel
impl Eq for BatchOpenChannel
impl StructuralPartialEq for BatchOpenChannel
Auto Trait Implementations§
impl Freeze for BatchOpenChannel
impl RefUnwindSafe for BatchOpenChannel
impl Send for BatchOpenChannel
impl Sync for BatchOpenChannel
impl Unpin for BatchOpenChannel
impl UnwindSafe for BatchOpenChannel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request