|
1 | 1 | # 🍣 Nigiri Bitcoin |
2 | 2 |
|
3 | | -Nigiri provides a command line interface that manages a selection of `docker-compose` batteries included to have ready-to-use bitcoin `regtest` development environment, with a **bitcoin** node, **electrum** explorer both backend and frontend user interface. |
| 3 | +Nigiri provides a command line interface that manages a selection of `docker-compose` batteries included to have a ready-to-use Bitcoin `regtest` development environment. Out of the box, you get: |
4 | 4 |
|
5 | | -It offers a [JSON HTTP proxy passtrough](https://github.com/vulpemventures/nigiri-chopsticks) that adds to the explorer handy endpoints like `/faucet` and automatic block generation when calling the `/tx` pushing a transaction. |
| 5 | +* **Bitcoin Node**: A Bitcoin Core node running in regtest mode |
| 6 | +* **Electrum**: Backend and frontend explorer for quick blockchain inspection |
| 7 | +* **Chopsticks**: A [JSON HTTP proxy](https://github.com/vulpemventures/nigiri-chopsticks) that adds handy endpoints like `/faucet` and automatic block generation |
6 | 8 |
|
7 | | -You can have Lightning with `--ln` flag and/or Elements with the `--liquid` flag. |
| 9 | +You can extend your setup with: |
| 10 | +* **Ark**: A Bitcoin layer two implementation for scalable off-chain transactions |
| 11 | +* **Elements/Liquid sidechain** with `--liquid` flag |
| 12 | +* **Lightning Network nodes** with `--ln` flag (Core Lightning, LND, and Taproot Assets) |
8 | 13 |
|
9 | 14 |
|
10 | 15 | # No time to make a Nigiri yourself? |
@@ -37,12 +42,17 @@ You may want to [Manage Docker as a non-root user](https://docs.docker.com/engin |
37 | 42 | * Close and reopen your terminal, then start Bitcoin and Liquid |
38 | 43 |
|
39 | 44 | ``` |
40 | | -$ nigiri start --liquid |
| 45 | +$ nigiri start --ark |
41 | 46 | ``` |
42 | 47 | **That's it.** |
43 | 48 |
|
44 | | -Go to http://localhost:5000 for quickly inspect the Bitcoin blockchain or http://localhost:5001 for Liquid. |
| 49 | +Go to http://localhost:5000 for quickly inspect the Bitcoin blockchain. |
45 | 50 |
|
| 51 | +Want more? Add Elements/Liquid or Lightning nodes: |
| 52 | +```bash |
| 53 | +$ nigiri start --ark --liquid # Add Elements/Liquid sidechain |
| 54 | +$ nigiri start --ark --ln # Add Lightning Network nodes |
| 55 | +``` |
46 | 56 |
|
47 | 57 | **Note for users of macOS Monterey an onward** |
48 | 58 | <details> |
@@ -187,6 +197,26 @@ $ nigiri cln connect `nigiri lnd getinfo | jq -r .identity_pubkey`@lnd:9735 |
187 | 197 | $ nigiri lnd openchannel --node_key=`nigiri cln getinfo | jq -r .id` --local_amt=100000 |
188 | 198 | ``` |
189 | 199 |
|
| 200 | +### Use the Ark CLI inside the box |
| 201 | + |
| 202 | +```bash |
| 203 | +# Check versions |
| 204 | +$ nigiri ark --version # or -v |
| 205 | +$ nigiri arkd --version # or -v |
| 206 | + |
| 207 | +# Initialize the Ark client (only needed once) |
| 208 | +$ nigiri ark init --network regtest --password secret --server-url localhost:7070 --explorer http://chopsticks:3000 |
| 209 | + |
| 210 | +# Use the Ark client |
| 211 | +$ nigiri ark config # Show wallet configuration |
| 212 | +$ nigiri ark receive # Show receiving addresses |
| 213 | +$ nigiri ark balance # Show wallet balance |
| 214 | + |
| 215 | +# Use the Ark daemon client |
| 216 | +$ nigiri arkd wallet status # Show wallet status |
| 217 | +$ nigiri arkd wallet create --password secret # Create a new wallet |
| 218 | +$ nigiri arkd wallet unlock --password secret # Unlock the wallet |
| 219 | +``` |
190 | 220 |
|
191 | 221 | ### Run in headless mode (without Esplora) |
192 | 222 | If you are looking to spin-up Nigiri in Travis or Github Action you can use the `--ci` flag. |
|
0 commit comments