pub struct OpenChannelRequest {Show 13 fields
pub node_pubkey: Vec<u8>,
pub node_pubkey_string: String,
pub local_funding_amount: i64,
pub push_sat: i64,
pub target_conf: i32,
pub sat_per_byte: i64,
pub private: bool,
pub min_htlc_msat: i64,
pub remote_csv_delay: u32,
pub min_confs: i32,
pub spend_unconfirmed: bool,
pub close_address: String,
pub funding_shim: Option<FundingShim>,
}
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.
node_pubkey_string: String
The hex encoded pubkey of the node to open a channel with. Deprecated now that the REST gateway supports base64 encoding of bytes fields.
local_funding_amount: i64
§push_sat: i64
§target_conf: i32
§sat_per_byte: i64
§private: bool
§min_htlc_msat: i64
§remote_csv_delay: u32
§min_confs: i32
§spend_unconfirmed: bool
§close_address: String
Close 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.
funding_shim: Option<FundingShim>
Funding shims are an optional argument that allow the caller to intercept certain funding functionality. For example, a shim can be provided to use a particular key for the commitment key (ideally cold) rather than use one that is generated by the wallet as normal, or signal that signing will be carried out in an interactive manner (PSBT based).
Trait Implementations§
Source§impl Clone for OpenChannelRequest
impl Clone for OpenChannelRequest
Source§fn clone(&self) -> OpenChannelRequest
fn clone(&self) -> OpenChannelRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OpenChannelRequest
impl Debug for OpenChannelRequest
Source§impl Default for OpenChannelRequest
impl Default for OpenChannelRequest
Source§fn default() -> OpenChannelRequest
fn default() -> OpenChannelRequest
Source§impl Message for OpenChannelRequest
impl Message for OpenChannelRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for OpenChannelRequest
impl PartialEq for OpenChannelRequest
impl StructuralPartialEq for OpenChannelRequest
Auto Trait Implementations§
impl Freeze for OpenChannelRequest
impl RefUnwindSafe for OpenChannelRequest
impl Send for OpenChannelRequest
impl Sync for OpenChannelRequest
impl Unpin for OpenChannelRequest
impl UnwindSafe for OpenChannelRequest
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<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> 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> 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