Skip to content

Commit

Permalink
Merge pull request #2702 from cosmos/bez/localnet-docs-update
Browse files Browse the repository at this point in the history
[R4R]: Add keys/accounts section to localnet docs
  • Loading branch information
zramsay authored Nov 7, 2018
2 parents b51aaaa + 9c6746e commit c664917
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions docs/gaia/networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ make build-linux localnet-stop localnet-start

### Configuration

The `make localnet-start` creates files for a 4-node testnet in `./build` by calling the `gaiad testnet` command.
This outputs a handful of files in the `./build` directory:
The `make localnet-start` creates files for a 4-node testnet in `./build` by
calling the `gaiad testnet` command. This outputs a handful of files in the
`./build` directory:

```tree -L 2 build/
build/
Expand Down Expand Up @@ -103,12 +104,27 @@ Each `./build/nodeN` directory is mounted to the `/gaiad` directory in each cont

### Logging

Logs are saved under each `./build/nodeN/gaiad/gaia.log`. Watch them stream in with, for example:
Logs are saved under each `./build/nodeN/gaiad/gaia.log`. You can also watch logs
directly via Docker, for example:

```
tail -f build/node0/gaiad/gaia.log
docker logs -f gaiadnode0
```

### Keys & Accounts

To interact with `gaiacli` and start querying state or creating txs, you use the
`gaiacli` directory of any given node as your `home`, for example:

```shell
gaiacli keys list --home ./build/node0/gaiacli
```

Now that accounts exists, you may create new accounts and send those accounts
funds!

**Note**: Each node's seed is located at `./build/nodeN/gaiacli/key_seed.json`.

### Special binaries

If you have multiple binaries with different names, you can specify which one to run with the BINARY environment variable. The path of the binary is relative to the attached volume. For example:
Expand Down

0 comments on commit c664917

Please sign in to comment.