From: Marco Argentieri Date: Thu, 30 Apr 2020 21:11:34 +0000 (+0200) Subject: Add Nigiri X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.CommandStringError.html?a=commitdiff_plain;h=924db64f6bc20652fd0a75c720d202f515ac0443;p=bitcoindevkit.org Add Nigiri --- diff --git a/content/repl/regtest.md b/content/repl/regtest.md index 1fd756ca89..50e9c8183d 100644 --- a/content/repl/regtest.md +++ b/content/repl/regtest.md @@ -32,3 +32,21 @@ This will start the Electrum server on port 50001. You can then add the `-n regt #### Stuck with "*wait until bitcoind is synced (i.e. initialblockdownload = false)*" Just generate a few blocks with `bitcoin-cli generatetoaddress 1
` + +## Bonus: Docker + +If you have already installed Docker on your machine, you can also use 🍣 [Nigiri CLI](https://github.com/vulpemventures/nigiri) to spin-up a complete development environment in `regtest` that includes a `bitcoin` node, an `electrs` explorer and the [`esplora`](https://github.com/blockstream/esplora) web-app to visualize blocks and transactions in the browser. + +Install 🍣 Nigiri +```bash +$ curl https://getnigiri.vulpem.com | bash +``` + +Start Docker daemon and run Nigiri box +``` +$ nigiri start +``` + +This will start electrum RPC interface on port `51401`, the REST interface on `3000` and the esplora UI on `5000` (You can visit with the browser and look for blocks, addresses and transactions) + +You can then add the `-n regtest -s localhost:51401` the `magic` commands to switch to the local regtest.