Update docs/liquid/liquid-part3.md

This commit is contained in:
b0xxer 2024-02-02 10:19:27 -06:00
parent cf18b31458
commit 12fb826869

View File

@ -45,20 +45,24 @@ Before we start, let's look at state of our 2 wallets:
}, },
``` ```
For our example, we can assume that StackerNews Airline (Node 1) is willing to accept a SND-1 token and return to the client 23,000 sats (approx $1 USD currently). So they make the following proposal For our example, we can assume that StackerNews Airline (Node 1) is willing to accept a SND-1 token and return to the client 23,000 sats (approx $1 USD currently). So Node1 makes the following proposal
``` ```
# Node1
$ liquidswap-cli -u http://$E_RPCUSER:$E_RPCPASS@localhost:7041 propose -o proposal.txt 3e62af3c80c56ab6fec3d1e5646637152afebaf2a86ace075bbb7a88702e1fe5 1 6f0279e9ed041c3d710a9f57d0c02928416460c4b722ae3457a11eec381c526d 0.000023 $ liquidswap-cli -u http://$E_RPCUSER:$E_RPCPASS@localhost:7041 propose -o proposal.txt 3e62af3c80c56ab6fec3d1e5646637152afebaf2a86ace075bbb7a88702e1fe5 1 6f0279e9ed041c3d710a9f57d0c02928416460c4b722ae3457a11eec381c526d 0.000023
``` ```
This file was exported to `proposal.txt` and transfered to Node2 (the customer), which was then inspected: This file was exported to `proposal.txt` and transfered to Node2 (the customer), which was then inspected:
![](1-part3-clientaccept.png)
We can see that this proposal matches our expectation (1 SND token in exchange for .000023 L-BTC). So Node2 accepts the proposal: We can see that this proposal matches our expectation (1 SND token in exchange for .000023 L-BTC). So Node2 accepts the proposal:
![](1b-part3-clientaccept.png)
Now the file `accept.txt` is transferred back to Node1 where it is finalized and sent.
The export `accepted.txt` file is transferred back to Node1 where it is finalized and sent.
``` ```
$ liquidswap-cli -u http://$E_RPCUSER:$E_RPCPASS@localhost:7041 finalize accepted.txt -s $ liquidswap-cli -u http://$E_RPCUSER:$E_RPCPASS@localhost:7041 finalize accepted.txt -s
@ -69,8 +73,6 @@ $ liquidswap-cli -u http://$E_RPCUSER:$E_RPCPASS@localhost:7041 finalize accepte
``` ```
## Securities / Transfer Restricted / etc ## Securities / Transfer Restricted / etc
# Pegging Out # Pegging Out