Update README.md

This commit is contained in:
Marco Argentieri
2020-08-24 12:41:56 +01:00
committed by GitHub
parent f1ada2f3a6
commit 5f813e8328

View File

@@ -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.