zebid unsafe-reset-all
zebicli query tx
<hash>
zebicli keys list
zebid init
<moniker>
--chain-id<chain-name>
zebicli keys add
<account-holder-name>
Add account, with coins to the genesis file. This is the genesis account. It can only be added before the chain is started. Once chain starts, then funds can only be transferred from one account to another. We can have multiple genesis accounts.
zebid add-genesis-account $(zebicli keys show
<account-holder-name>
-a)<amount>zebi
The value required should be multiplied to the power to 10^8 for decimal representation.
zebicli config chain-id
<chain-name>
zebicli config output json zebicli config indent true zebicli config trust-node true
zebid gentx --name
<account-holder-name>
--amount=<amount>zebi
--commission-rate0.01
--commission-max-rate0.05
--commission-max-change-rate0.005
--min-self-delegation<amount>
After generation of genesis transcation, input the gentx into the genesis file, so that the chain is aware of the validators
zebid collect-gentxs
zebid validate-genesis
zebid start --minimum-gas-prices=
1400.0zebi
1>>ZPBLog.$(date +%b%d-%H) 2>&1 &
zebicli query account $(zebicli keys show
<account-holder-name>
-a)
zebicli tx kvstore post-key-value howrah bridge --from
<account-holder-name>
--chain-id<chain-name>
zebicli rest-server
<cert-file>
<key-file>
--chain-id<chain-name>
--trust-node --laddrtcp://0.0.0.0:1317
zebicli query kvstore get-key-value howrah
->["bridge"]
curl -s "http://localhost:1317/kvstore/key/<key>"
curl -s "http://localhost:1317/kvstore/data/<data>"
curl -s "http://localhost:1317/txs/<hash>"
- Delegator rewards
curl -X GET "http://localhost:1317/distribution/delegators/<account_address>/rewards" -H "accept: application/json"
- Validator rewards
curl -X GET "http://localhost:1317/distribution/validators/<validator_address>/rewards" -H "accept: application/json"
curl -X GET "http://localhost:1317/bank/balances/<account_address>" -H "accept: application/json"
curl -X GET "http://localhost:1317/auth/accounts/<account_address>" -H "accept: application/json"
curl -X GET "http://localhost:1317/staking/validators" -H "accept: application/json"
- To get all delegations from a validator
curl -X GET "http://localhost:1317/staking/validators/<validator_address>/delegations" -H "accept: application/json"
- To get all delegations from a delegator
curl -X GET "http://localhost:1317/staking/delegators/<account_address>/delegations" -H "accept: application/json"
curl -X GET "http://localhost:1317/txs?sender=<account_address>" -H "accept: application/json" curl -X GET "http://localhost:1317/txs?recipient=<account_address>" -H "accept: application/json"
zebicli tx staking create-validator
--amount=<amount>zebi
--pubkey=$(zebid tendermint show-validator)
--moniker=<node-name>
--chain-id=<chain-name>
--commission-rate="0.10"
--commission-max-rate="0.20"
--commission-max-change-rate="0.01"
--min-self-delegation="1"
--gas="auto"
--gas-prices="0.025zebi"
--from=<account-holder-name>
Use "--help" or "-h" with zebid and zebicli for more information about a command.