@@ -112,6 +112,8 @@ Result:
112112
113113### Sweep Funds from an Output Descriptor to an Address
114114
115+ You can use ** Sweeptool** to sweep funds from a descriptor (` -d ` ) and a change descriptor (` -c ` ) to a new address (` -a ` ).
116+
115117``` bash
116118$ D=" wpkh([c258d2e4/84h/1h/1h]tpubDDYkZojQFQjht8Tm4jsS3iuEmKjTiEGjG6KnuFNKKJb5A6ZUCUZKdvLdSDWofKi4ToRCwb9poe1XdqfUnP4jaJjCB2Zwv11ZLgSbnZSNecE/0/*)"
117119$ C=" wpkh([c258d2e4/84h/1h/1h]tpubDDYkZojQFQjht8Tm4jsS3iuEmKjTiEGjG6KnuFNKKJb5A6ZUCUZKdvLdSDWofKi4ToRCwb9poe1XdqfUnP4jaJjCB2Zwv11ZLgSbnZSNecE/1/*)"
@@ -124,6 +126,8 @@ $ sweeptool sweep -d $D -c $C -a $A -n testnet
124126
125127### Sweep Funds from an Output Descriptor to an Output descriptor
126128
129+ You can alternatively sweep to a new descriptor (` -e ` ) and its change descriptor (` -s ` ).
130+
127131``` bash
128132$ E=" wpkh([c258d2e4/84h/1h/1h]tpubDDYkZojQFQjht8Tm4jsS3iuEmKjTiEGjG6KnuFNKKJb5A6ZUCUZKdvLdSDWofKi4ToRCwb9poe1XdqfUnP4jaJjCB2Zwv11ZLgSbnZSNecE/0/*)"
129133$ S=" wpkh([c258d2e4/84h/1h/1h]tpubDDYkZojQFQjht8Tm4jsS3iuEmKjTiEGjG6KnuFNKKJb5A6ZUCUZKdvLdSDWofKi4ToRCwb9poe1XdqfUnP4jaJjCB2Zwv11ZLgSbnZSNecE/1/*)"
@@ -136,7 +140,7 @@ $ sweeptool sweep -d $D -c $C -e $E -s $S -n testnet
136140### Provide an Esplora server of your choice
137141
138142By default electrum server is used ` ssl://electrum.blockstream.info:60002 ` to query blockchain. But
139- you can override it with an esplora server of your choice, e.g.
143+ you can override it ( ` --esplora ` ) with an esplora server of your choice, e.g.
140144* https://blockstream.info/testnet/api for testnet
141145* https://blockstream.info/api for mainnet
142146
@@ -146,14 +150,16 @@ $ sweeptool sweep -d $D -c $C -a mvuvhgT5DUjpQ2LBWQhujiFGDZiDHGdHa7 --esplora ht
146150
147151### Access Electrum Server behind a Tor onion address
148152
149- Here we validate our UTXOs via Electrum server of the Blockstream Esplora .
153+ You can also define a specific Electrum server ( ` --server ` ) to validate UTXOs .
150154
151155``` bash
152156$ sweeptool sweep -d $D -c $C -a mvuvhgT5DUjpQ2LBWQhujiFGDZiDHGdHa7 --server explorerzydxu5ecjrkwceayqybizmpjjznk5izmitf2modhcusuqlid.onion:143 --proxy localhost:9050
153157```
154158
155159### Signing a PSBT
156160
161+ Instead of sweeping to an address or a new descriptor, you can instead sweep to a PSBT.
162+
157163``` bash
158164$ D=" wpkh([df4cd1b2/48h/1h/0h/2h]tprv8i2Zqn1v72sJunpNRwQaEFBNGQ8extLZauN3DY6RAkCa62GX59h3CHrvNhL7ycehLQ7Q3MqQqp42wgDwJL8Nxjgvz71gWDA9Uwb7QQMYqza/0/*)"
159165$ C=" wpkh([df4cd1b2/48h/1h/0h/2h]tprv8i2Zqn1v72sJunpNRwQaEFBNGQ8extLZauN3DY6RAkCa62GX59h3CHrvNhL7ycehLQ7Q3MqQqp42wgDwJL8Nxjgvz71gWDA9Uwb7QQMYqza/1/*)"
@@ -167,7 +173,7 @@ $ sweeptool sign -d $D -c $C $PSBT
167173
168174### Accessing Specific Fields
169175
170- If you want to access a specific field only you can use ** jq** (a command-line JSON processor) for that. Let's access
176+ If you want to access a specific field only you can use ** jq** (a command-line JSON processor) for that. For example, to access
171177a PSBT in UR format:
172178
173179``` bash
0 commit comments