Skip to content

Instantly share code, notes, and snippets.

@zerofeerouting
Last active June 24, 2023 22:39
Show Gist options
  • Save zerofeerouting/24e23e7e33e2340fa1326646c00ca5ca to your computer and use it in GitHub Desktop.
Save zerofeerouting/24e23e7e33e2340fa1326646c00ca5ca to your computer and use it in GitHub Desktop.
zero fee routing - channel opening service

Channel opening service

I will open a channel to you with my on-chain funds for a fee.

https://zerofeerouting.com

If you have any questions, please reach out to me via Twitter or telegram. I rarely look in the comments of this gist.

How much is a channel?

The price for the channel depends on the size and can be calculated as:

[size] * 0.0075 + 2,500

A 10M channel (0.1 BTC) would cost 77,500 sats.

What channel size do I recommend?

If you buy the channel in order to increase your routing, I recommended a size between 5M and 20M, depending on the size of your other channels.

The smallest channel I sell is 1M (10,000 sats).

Is there a money-back guarantee?

Yes there is. If you're not happy with your purchase, you're free to cooperatively close your channel within 2,016 blocks of the funding transaction being confirmed (~2 weeks).

Please reach out to me via twitter or telegram (@zerofeerouting) to arrange for the refund after closing the channel.

I will refund your purchasing price minus the fee for the liquidity that did not get returned on chain to me.

Example: You coop close a 10M channel I've opened (for 50,000 sats). 2M have moved over to your end, so it's balanced 20/80. I refund 8M * 0.0075 (60,000 sats) for the liquidity I received back by your cooperative close.

If your node force-closes on me within 2,016 blocks you're still eligible for a refund, but I will deduct a 10,000 sat fee to recover my on-chain cost caused by the force-close.

What are you allowed to do?

You can use the channel as you like it. You can drain it, disable it, set any kind of fees you want or just close it again. You not force-closing the channel is very much appreciated.

What happens on an involuntary force-close?

Unfortunately force-closes can happen to no fault of any of the participants, especially if a channel is routing heavily. If such a force-close happens on a channel that you bought from me, independently of which node force-closed the channel, I offer two options:

  1. I reopen a new channel to you with my returned liquidity for on-chain fee of the force-closing transaction (which I paid) + 2,000 sats
  2. I credit you the returned liqudity towards a new channel (at least 2M larger than returned liquidity)
  3. I reimburse 0.1% of the liquidity I get back

Example: A 10M channel we had gets force-closed due to a stuck HTLC by either side with an on-chain fee of 1,500 sats. The liquidity is evenly distributed (5M/5M). Your options are: (1) me opening a 5M channel to you for a 3,500 sat fee (2) you getting a new 10M channel for 40,000 sats (instead of 77,500) (3) me paying you 5,000 sats for the returned liquidity.

How long am I keeping the channel open?

The channel will stay open for a minumum of 90 days.

After this I review the channel and might:

  • ask for an additional liquidity fee to cover my capital cost for the next 90 days
  • coop close the channel if it sees little to no movement (thus is of no use for both peers)
  • force-close the channel if your node is down for more than 14 consecutive days
@DerEwige
Copy link

ok I will check the state when it goes over 500k Sats and see if the policy changes.
Thanks. Will probably have to increase the channel size then

Also, maybe you should enforce the 2 Mio Sat minimum channel size. That you mention on https://amboss.space/node/038fe1bd966b5cb0545963490c631eaa1924e2c4c0ea4e7dcb5d4582a1e7f2f1a5

With this settings, channels with less than 500k total size will never be able to route more than 1 sat at a time, which virtually renders them useless

@dagadevelop
Copy link

Can I use the same channel as outbound traffic?

@carnhofdaki
Copy link

@dagadevelop When the channel is opened from ZeroFee it first has all the balance on their side, so you can receive through it or route from their side to some other channel where the balance is more on your side. Whenever you have balance on your side you can send satoshi over that channel. But the point is it may be all lightning fast so whenever there seems to be balance on your side, it may not be in next second. Experiment some more on Signet network first and get familiar with how it works under the hood without losing real bitcoin.

@sidiropo
Copy link

sidiropo commented Sep 1, 2022

I purchased a channel of 5M sats to my node with id 02e40a4f171faf1a36227c5dc535f67862dd4dbffd63c838fcc9c48a6e30e5676c. It's been a couple of hours and still no channel. Am I doing anything wrong? I'm already connected to your node.

@jiashanlu
Copy link

Hi, I purchased a 20M channel yesterday. here is my node :02de9990c589cef2745e70d78a767eb2a787fa65a0e1346a1c34f85b5b077074cd@2.49.31.50:9735
nothing happened so far

@carnhofdaki
Copy link

carnhofdaki commented Sep 1, 2022

@jiashanlu It is already active. It took some time for the block with channel opening transaction to be mined. https://mempool.space/lightning/channel/826980078706294785

The block where the channel was opened (752134) was mined just at 10:01 UTC today (time when you wrote) and it takes a couple of blocks on top of it for the channel to become active.

@zerofeerouting
Copy link
Author

@sidiropo - I have looked in my logs and do not see anything regarding your pubkey. Did you give another pubkey when ordering the channel? Feel free to reach out to my twitter/telegram accounts via @zerofeerouting

@Bashy
Copy link

Bashy commented Oct 24, 2022

Hey, i did purchase a channel more than 2h ago for my OBW wallet (SBW fork), but it's stucked on "Opening" on my side, here my pubKey 02bb295b134533d83e465c3f346e67fccb55278d7b229269b5893ec66b1df10de9
Did I do anything wrong?

Seems like it's working now, may i ask the send capacity is initially set to -50000sats? Is that the funds locked to pay miner fees in case the channel force close?

@Tobben67
Copy link

Hey. I'm very grateful for our channel and your service. If I remember correct, there was a FAQ after purchasing the channel. In the FAQ there was some important information if the channel was above 15 or 16M? In those cases you have to change or add something in lnd.conf. If I remember correct, can you publish the FAQ?

Best regards from NorthOfTheWall

@carnhofdaki
Copy link

@Tobben67 see https://bitcoinops.org/en/topics/large-channels/, CLN has --large-channels and LND has --maxchansize=.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment