Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R4R]: Add keys/accounts section to localnet docs #2702

Merged
merged 8 commits into from
Nov 7, 2018
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions docs/getting-started/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`.
alexanderbez marked this conversation as resolved.
Show resolved Hide resolved

### 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