dcrlncli openchannel - Open a channel to a node or an existing peer.
dcrlncli openchannel [command options] node-key local-amt push-amt
Attempt to open a new channel to an existing peer with the key node-key optionally blocking until the channel is ‘open’.
One can also connect to a node before opening a new channel to it by
setting its host:port via the
--connect argument. For this to work,
node_key must be provided, rather than the
peer_id. This is optional.
The channel will be initialized with
local-amt atoms locally and
atoms for the remote node. Note that specifying
push-amt means you give that
amount to the remote node as part of the channel opening. Once the channel is open,
txid:vout) of the funding output is returned.
One can manually set the fee to be used for the funding transaction via either
--atoms_per_byte arguments. This is optional.
||The identity public key of the target node/peer serialized in compressed format|
||(Optional) The host:port of the target node|
||The number of atoms the wallet should commit to the channel (default: 0)|
||The number of atoms to give the remote side as part of the initial commitment state, this is equivalent to first opening a channel and sending the remote party funds, but done all in one step (default: 0)|
||Block and wait until the channel is fully open|
||(Optional) The number of blocks that the transaction should confirm in, will be used for fee estimation (default: 0)|
||(Optional) A manual fee expressed in atom/byte that should be used when crafting the transaction (default: 0)|
||Make the channel private, such that it won’t be announced to the greater network, and nodes other than the two channel endpoints must be explicitly told about it to be able to route through it|
||(Optional) The minimum value we will require for incoming HTLCs on the channel (default: 0)|
||(Optional) The number of blocks we will require our channel counterparty to wait before accessing its funds in case of unilateral close. If this is not set, we will scale the value according to the channel size (default: 0)|
||(Optional) The minimum number of confirmations each one of your outputs used for the funding transaction must satisfy (default: 1)|