From e8722f0116f275c325f1c457b7c71433d0df4a03 Mon Sep 17 00:00:00 2001 From: toneloc Date: Sat, 5 Oct 2024 12:25:41 -0400 Subject: [PATCH] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7ae7dc6..5f42e53 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,8 @@ Clone the repo and open it in two windows. 1. Start up the app. Run ``cargo --features user`` in one window and ``cargo --features lsp`` in the other. 2. Get some test BTC Run ``getaddress`` in the user window. Go to https://faucet.mutinynet.com/ and send some test sats to that address. Run ``balance`` in the user window and wait until your BTC shows up in there. 3. Open the Stable Channel Open a channel ``openchannel [NODE_ID] [LISTENING_ADDRESS] [SATS_AMOUNT]``. Then run ``listallchannels`` check if "channel_ready" equals "true." Will take 6 confirmations or a minute or two. -4. Start the Stable Channel for both users In the user window, run the command: ``user startstablechannel CHANNEL_ID IS_STABLE_RECEIVER EXPECTED_DOLLAR_AMOUNT EXPECTED_BTC_AMOUNT`` or: ``user startstablechannel cca0a4c065e678ad8aecec3ae9a6d694d1b5c7512290da69b32c72b6c209f6e2 true 100.0 0`` In the lsp window, run the command: ``user startstablechannel CHANNEL_ID IS_STABLE_RECEIVER EXPECTED_DOLLAR_AMOUNT EXPECTED_BTC_AMOUNT`` or: ``user startstablechannel cca0a4c065e678ad8aecec3ae9a6d694d1b5c7512290da69b32c72b6c209f6e2 false 100.0 0`` This command means "Make the channel with ID cca0a... a stable channel with a value of $100.0 and 0 native bitcoin, where it is true (or false) that I am the stable receiver." +4. We need to set Bolt12 offers for each side so they can pay each other. In both windows, run ``getouroffer``. Then copy that and run ``settheiroffer [OFFER]`` in both windows. +5. Start the Stable Channel for both users In the user window, run the command: ``user startstablechannel CHANNEL_ID IS_STABLE_RECEIVER EXPECTED_DOLLAR_AMOUNT EXPECTED_BTC_AMOUNT`` or: ``user startstablechannel cca0a4c065e678ad8aecec3ae9a6d694d1b5c7512290da69b32c72b6c209f6e2 true 100.0 0`` In the lsp window, run the command: ``user startstablechannel CHANNEL_ID IS_STABLE_RECEIVER EXPECTED_DOLLAR_AMOUNT EXPECTED_BTC_AMOUNT`` or: ``user startstablechannel cca0a4c065e678ad8aecec3ae9a6d694d1b5c7512290da69b32c72b6c209f6e2 false 100.0 0`` This command means "Make the channel with ID cca0a... a stable channel with a value of $100.0 and 0 native bitcoin, where it is true (or false) that I am the stable receiver." This basic process works as follows: