Perform a trusted onchain to offchain swap.
Advantage:
How to:
Open a dual funded, balanced channel with a trusted peer using the command line requiring an Lightning and an on-chain transaction.
Find below how to create a 2million sats balanced channel between the nodes A
and B
.
Advantages:
Requirements:
A
has 1M sats outgoing liquidity.B
has 1M sats incoming liquidity + 2mil sats funds on-chain (trusted node).A
and B
.How to:
B
sends and invoice to receive 1M sats from A
.A
pays 1M sats to B
.B
opens a 2M sats channel to A with the command:
lncli openchannel <nodeID_of_A> --local_amt 2000000 --push_amt 1000000 --sat_per_byte 2
There should be no rush, so use a low fee for the on-chain tx. Check https://whatthefee.io/ for the current mempool status or use the --conf_target 10
option for automatic fee estimation to aim to have the channel confirmed in ~10 blocks.
This will result to have a balanced channel with 1M sats on each side (minus the commit fee).
Providing liquidity on the Lightning Network comes with transaction costs, opportunity and hot wallet risks.
Liquidity is neither abundant nor free.
Asking other node operators for inbound liquidity is asking a favour.
A suggestion (example) for pricing liquidity could be: