forked from cerc-io/laconicd-deprecated
faucet: remove module (#678)
* changelog v0.4.0 * faucet: remove module * changelog * codecov
This commit is contained in:
+60
-48
@@ -2,67 +2,79 @@
|
||||
order: 5
|
||||
-->
|
||||
|
||||
|
||||
# Joining Chainsafe's Public Testnet
|
||||
|
||||
This document outlines the steps to join the public testnet hosted by [Chainsafe](https://chainsafe.io).
|
||||
This document outlines the steps to join the public testnet hosted by [Chainsafe](https://chainsafe.io).
|
||||
|
||||
## Steps:
|
||||
1. Install the Ethermint binaries (ethermintd & ethermint cli):
|
||||
```
|
||||
git clone https://github.com/cosmos/ethermint
|
||||
cd ethermint
|
||||
make install
|
||||
```
|
||||
## Steps
|
||||
|
||||
2. Create an Ethermint account:
|
||||
```
|
||||
ethermintcli keys add <keyname>
|
||||
```
|
||||
1. Install the Ethermint binaries (ethermintd & ethermint cli)
|
||||
|
||||
3. Copy genesis file:
|
||||
Follow this [link](https://gist.github.com/araskachoi/43f86f3edff23729b817e8b0bb86295a) and copy it over to the directory ~/.ethermintd/config/genesis.json
|
||||
```bash
|
||||
git clone https://github.com/cosmos/ethermint
|
||||
cd ethermint
|
||||
make install
|
||||
```
|
||||
|
||||
4. Add peers:
|
||||
Edit the file located in ~/.ethermintd/config/config.toml and edit line 350 (persistent_peers) to the following;
|
||||
```
|
||||
"7678d52de4a724e468e503a7743664d12a78b5b0@18.204.206.179:26656,c62fadc76b7fa1ab25669b64fdc00c8d8d422bd0@3.86.104.251:26656,5fa7d4550b57298b059d1dd8af01829482e7d097@54.210.246.165:26656"
|
||||
```
|
||||
2. Create an Ethermint account
|
||||
|
||||
5. Validate genesis and start the Ethermint network:
|
||||
```
|
||||
ethermintd validate-genesis
|
||||
```
|
||||
```
|
||||
ethermintd start --pruning=nothing --rpc.unsafe --log_level "main:info,state:info,mempool:info" --trace
|
||||
```
|
||||
(we recommend running the command in the background for convenience)
|
||||
```bash
|
||||
ethermintcli keys add <keyname>
|
||||
```
|
||||
|
||||
6. Start the RPC server:
|
||||
```
|
||||
ethermintcli rest-server --laddr "tcp://localhost:8545" --unlock-key $KEY --chain-id etherminttestnet-777 --trace
|
||||
```
|
||||
where `$KEY` is the key name that was used in step 2.
|
||||
(we recommend running the command in the background for convenience)
|
||||
3. Copy genesis file
|
||||
|
||||
7. Request funds from the faucet:
|
||||
You will need to know the Ethereum hex address, and it can be found with the following command:
|
||||
Follow this [link](https://gist.github.com/araskachoi/43f86f3edff23729b817e8b0bb86295a) and copy it over to the directory ~/.ethermintd/config/genesis.json
|
||||
|
||||
```
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}' -H "Content-Type: application/json" http://localhost:8545
|
||||
```
|
||||
Using the output of the above command, you will then send the command with your valid Ethereum address:
|
||||
```
|
||||
curl --header "Content-Type: application/json" --request POST --data '{"address":"0xYourEthereumHexAddress"}' 3.95.21.91:3000
|
||||
```
|
||||
4. Add peers
|
||||
|
||||
Edit the file located in ~/.ethermintd/config/config.toml and edit line 350 (persistent_peers) to the following
|
||||
|
||||
```toml
|
||||
"7678d52de4a724e468e503a7743664d12a78b5b0@18.204.206.179:26656,c62fadc76b7fa1ab25669b64fdc00c8d8d422bd0@3.86.104.251:26656,5fa7d4550b57298b059d1dd8af01829482e7d097@54.210.246.165:26656"
|
||||
```
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
(we recommend running the command in the background for convenience)
|
||||
|
||||
6. Start the RPC server
|
||||
|
||||
```bash
|
||||
ethermintcli rest-server --laddr "tcp://localhost:8545" --unlock-key $KEY --chain-id etherminttestnet-777 --trace
|
||||
```
|
||||
|
||||
where `$KEY` is the key name that was used in step 2.
|
||||
(we recommend running the command in the background for convenience)
|
||||
|
||||
7. Request funds from the faucet
|
||||
|
||||
You will need to know the Ethereum hex address, and it can be found with the following command:
|
||||
|
||||
```bash
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}' -H "Content-Type: application/json" http://localhost:8545
|
||||
```
|
||||
|
||||
Using the output of the above command, you will then send the command with your valid Ethereum address
|
||||
|
||||
```bash
|
||||
curl --header "Content-Type: application/json" --request POST --data '{"address":"0xYourEthereumHexAddress"}' 3.95.21.91:3000
|
||||
```
|
||||
|
||||
## Public Testnet Node RPC Endpoints
|
||||
|
||||
Node0: `54.210.246.165:8545`
|
||||
Node1: `3.86.104.251:8545`
|
||||
Node2: `18.204.206.179:8545`
|
||||
- **Node0**: `54.210.246.165:8545`
|
||||
- **Node1**: `3.86.104.251:8545`
|
||||
- **Node2**: `18.204.206.179:8545`
|
||||
|
||||
example:
|
||||
```
|
||||
|
||||
```bash
|
||||
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' -H "Content-Type: application/json" 54.210.246.165:8545
|
||||
```
|
||||
```
|
||||
|
||||
@@ -12,7 +12,7 @@ Run a local node and start the REST and JSON-RPC clients {synopsis}
|
||||
|
||||
## Automated deployment
|
||||
|
||||
Run the local node with faucet enabled:
|
||||
Run the local node
|
||||
|
||||
::: warning
|
||||
The script below will remove any pre-existing binaries installed. Use the manual deploy if you want
|
||||
|
||||
@@ -311,31 +311,6 @@ For more information on seeds and peers, you can the Tendermint [P2P documentati
|
||||
|
||||
The final step is to [start the nodes](./run_node.md#start-node). Once enough voting power (+2/3) from the genesis validators is up-and-running, the testnet will start producing blocks.
|
||||
|
||||
## Testnet faucet
|
||||
|
||||
Once the ethermint daemon is up and running, you can request tokens to your address using the `faucet` module:
|
||||
|
||||
```bash
|
||||
# query your initial balance
|
||||
ethermintcli q bank balances $(ethermintcli keys show <mykey> -a)
|
||||
|
||||
# send a tx to request tokens to your account address
|
||||
ethermintcli tx faucet request 100aphoton --from <mykey>
|
||||
|
||||
# query your balance after the request
|
||||
ethermintcli q bank balances $(ethermintcli keys show <mykey> -a)
|
||||
```
|
||||
|
||||
You can also check to total amount funded by the faucet and the total supply of the chain via:
|
||||
|
||||
```bash
|
||||
# total amount funded by the faucet
|
||||
ethermintcli q faucet funded
|
||||
|
||||
# total supply
|
||||
ethermintcli q supply total
|
||||
```
|
||||
|
||||
## Next {hide}
|
||||
|
||||
Learn about how to setup a [validator](./validator-setup.md) node on Ethermint {hide}
|
||||
|
||||
Reference in New Issue
Block a user