Skip to content

Commit

Permalink
how to delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Jan 30, 2020
1 parent c5994a1 commit 6754bfb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@ echo 12345678 | engcli keys add b
engd add-genesis-account $(engcli keys show -a a) 1000000000000ueng # 1 ENG == 10^6 uENG
engd add-genesis-account $(engcli keys show -a b) 2000000000000ueng # 1 ENG == 10^6 uENG

echo 12345678 | engd gentx --name a --amount 1000000ueng # generate a genesis transaction - this makes a to a validator on genesis
echo 12345678 | engd gentx --name a --amount 1000000ueng # generate a genesis transaction - this makes a a validator on genesis which stakes 1000000ueng ()

engd collect-gentxs # input the genTx into the genesis file, so that the chain is aware of the validators

engd validate-genesis # make sure genesis file is correct

engd start # hokos pokos
```

```bash
# Now a is a validator with 1 ENG (1000000ueng) staked.
# This is how b can delegate 0.00001 ENG to a
engcli tx staking delegate $(engcli keys show a --bech=val -a) 10ueng --from b
```

0 comments on commit 6754bfb

Please sign in to comment.