From 5f813e8328302e5a97b0353600a84d0d7911b593 Mon Sep 17 00:00:00 2001 From: Marco Argentieri <3596602+tiero@users.noreply.github.com> Date: Mon, 24 Aug 2020 12:41:56 +0100 Subject: [PATCH] Update README.md --- README.md | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f4782ad..2089c6b 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,8 @@ It offers a [JSON HTTP proxy passtrough](https://github.com/vulpemventures/nigir You can have Elements too with the `--liquid` flag. - +# No time to make a Nigiri yourself? ## Pre-built binary -No time to make a Nigiri yourself? * Download and install `nigiri` command line interface @@ -35,6 +34,21 @@ $ nigiri start --liquid That's it. Go to http://localhost:5000 for quickly inspect the Bitcoin blockchain or http://localhost:5001 for Liquid. +* Use the Bitcoin CLI inside the box + +``` +$ alias bcli='docker exec -it resources_bitcoin_1 bitcoin-cli -datadir=config' +$ bcli getblockchaininfo +``` + +* Use the Elements CLI inside the box + +``` +$ alias ecli='docker exec -it resources_liquid_1 elements-cli -datadir=config' +$ ecli getblockchaininfo +``` + +# Make from scratch ## Utensils * [Docker (compose)](https://docs.docker.com/compose/) @@ -130,6 +144,20 @@ $ nigiri logs electrs --liquid $ nigiri logs chopsticks --liquid ``` +* Use the Bitcoin CLI inside the box + +``` +$ alias bcli='docker exec -it resources_bitcoin_1 bitcoin-cli -datadir=config' +$ bcli getblockchaininfo +``` + +* Use the Elements CLI inside the box + +``` +$ alias ecli='docker exec -it resources_liquid_1 elements-cli -datadir=config' +$ ecli getblockchaininfo +``` + Nigiri uses the default directory `~/.nigiri` to store configuration files and docker-compose files. To set a custom directory use the `--datadir` flag.