2020-12-07 17:39:37 +00:00
<!--
order: 5
-->
2021-08-03 17:35:31 +00:00
# Joining a Testnet
2020-12-07 17:39:37 +00:00
2021-08-03 17:35:31 +00:00
This document outlines the steps to join an existing testnet
2020-12-07 17:39:37 +00:00
2021-01-08 13:25:02 +00:00
## Steps
2020-12-07 17:39:37 +00:00
2021-08-03 17:35:31 +00:00
1. Install the Ethermint binary ethermintd
2020-12-07 17:39:37 +00:00
2021-01-08 13:25:02 +00:00
```bash
2021-08-03 17:35:31 +00:00
go install https://github.com/tharsis/ethermint
2021-01-08 13:25:02 +00:00
```
2020-12-07 17:39:37 +00:00
2021-01-08 13:25:02 +00:00
2. Create an Ethermint account
2020-12-07 17:39:37 +00:00
2021-01-08 13:25:02 +00:00
```bash
2021-08-03 17:35:31 +00:00
ethermintd keys add < keyname >
2021-01-08 13:25:02 +00:00
```
2020-12-07 17:39:37 +00:00
2021-01-08 13:25:02 +00:00
3. Copy genesis file
2020-12-07 17:39:37 +00:00
2021-01-08 13:25:02 +00:00
Follow this [link ](https://gist.github.com/araskachoi/43f86f3edff23729b817e8b0bb86295a ) and copy it over to the directory ~/.ethermintd/config/genesis.json
2020-12-07 17:39:37 +00:00
2021-01-08 13:25:02 +00:00
4. Add peers
Edit the file located in ~/.ethermintd/config/config.toml and edit line 350 (persistent_peers) to the following
```toml
2021-03-02 19:41:12 +00:00
"05aa6587f07a0c6a9a8213f0138c4a76d476418a@18.204.206.179:26656,13d4a1c16d1f427988b7c499b6d150726aaf3aa0@3.86.104.251:26656,a00db749fa51e485c8376276d29d599258052f3e@54.210.246.165:26656"
2021-01-08 13:25:02 +00:00
```
5. Validate genesis and start the Ethermint network
```bash
ethermintd validate-genesis
ethermintd start --pruning=nothing --rpc.unsafe --log_level "main:info,state:info,mempool:info" --trace
```