Add steps to participate as a validator
This commit is contained in:
parent
f5ceea499a
commit
b2256d0466
@ -125,9 +125,60 @@ laconic-so deployment --dir laconic-full-node-deployment start
|
||||
|
||||
## Join as testnet validator
|
||||
|
||||
<!-- TODO import a funded account / create an account and get it funded -->
|
||||
* Create / import a new key pair:
|
||||
|
||||
<!-- TODO create a validator-->
|
||||
```bash
|
||||
# Create new keypair
|
||||
docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd keys add <key-name>"
|
||||
|
||||
# OR
|
||||
# Restore existing key with mnemonic seed phrase
|
||||
# You will be prompted to enter mnemonic seed
|
||||
docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd keys add <key-name> --recover"
|
||||
|
||||
# Query the keystore for your account's address
|
||||
docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd keys show <key-name> -a"
|
||||
```
|
||||
|
||||
* Request tokens from the testnet faucet for your account if required
|
||||
|
||||
* Check balance for your account:
|
||||
|
||||
```bash
|
||||
docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd query bank balances <key-name>"
|
||||
```
|
||||
|
||||
* Create required validator configuration:
|
||||
|
||||
```bash
|
||||
# Edit the staking amount and other fields as required
|
||||
docker exec -it $LACONICD_CONTAINER_ID bash -c 'cat <<EOF > <your-node-moniker>-validator.json
|
||||
{
|
||||
"pubkey": $(laconicd cometbft show-validator),
|
||||
"amount": "900000000photon",
|
||||
"moniker": "<your-node-moniker>",
|
||||
"commission-rate": "0.1",
|
||||
"commission-max-rate": "0.2",
|
||||
"commission-max-change-rate": "0.01",
|
||||
"min-self-delegation": "1"
|
||||
}
|
||||
EOF'
|
||||
```
|
||||
|
||||
* Create a validator:
|
||||
|
||||
```bash
|
||||
docker exec -it $LACONICD_CONTAINER_ID bash -c 'laconicd tx staking create-validator <your-node-moniker>-validator.json \
|
||||
--fees 50photon \
|
||||
--chain-id=laconic_9000-1 \
|
||||
--from <key-name>'
|
||||
```
|
||||
|
||||
* View staking validator details:
|
||||
|
||||
```bash
|
||||
docker exec -it $LACONICD_CONTAINER_ID bash -c "laconicd query staking validator <key-name>"
|
||||
```
|
||||
|
||||
## Clean up
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user