Command Gitopia This is command about CLI Gitopia
Key Management
we assume, variable name_your_wallet is name of your own wallet.
Install jq package for management json format
Ubuntu
apt install jq
CentOS
yum install jq
Arch Linux
pacman -S jq
Running in user (Assume) : salinem
We never use this username in our production!
Gas Fee
Copy --gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2
Add New Key
Copy gitopiad keys add mywallet --home ${HOME} /.gitopia
Recover Key
With Passphrase
Copy gitopiad keys add mywallet --recover --home ${HOME} /.gitopia
With Keyring
Copy gitopiad keys add mywallet --recover --keyring-backend os --home ${HOME} /.gitopia
List Key
Copy gitopiad keys list --home ${HOME} /.gitopia
Delete Key
Copy gitopiad keys delete mywallet --home ${HOME} /.gitopia
Export Key
Copy gitopiad keys export mywallet --home ${HOME} /.gitopia
Import Key
Copy gitopiad keys import mywallet mywallet_file.backup --home ${HOME}/.gitopia
Show All Balances Address
Copy for mywallet in ` gitopiad keys list --home ${HOME} /.gitopia--output json | jq -r ".[] .address"`
do
CHAIN_ID = "gitopia"
RPC = "http://localhost:16701"
gitopiad q bank balances ${mywallet} --home ${HOME} /.gitopia --chain-id ${CHAIN_ID} --node ${RPC}
done
Show Balance Address
Copy gitopiad q bank balances mywallet_public_address --home ${HOME}/.gitopia --chain-id gitopia --node http://localhost:16701
Validator Management
We assume,You have complete identities. Moniker, Website, Security and Details Your Validator
Install jq package for management json format
Ubuntu
apt install jq
CentOS
yum install jq
Arch Linux
pacman -S jq
Create New Validator
Copy MONIKER = "NAME_OF_YOUR_VALIDATOR"
PROFILE = "PGP_KEY_OF_KEYBASE"
DETAILS = "Describes Your Validator"
WEBSITE = "https://yourwebsite.com"
gitopiad tx staking create-validator \
--amount=1000000ulore \
--pubkey=$(gitopiad tendermint show-validator --home ${HOME} /.gitopia ) \
--moniker = "${MONIKER}" \
--identity= "${PROFILE}" \
--details= "${DETAILS}" \
--website= "${WEBSITE}" \
--chain-id=gitopia \
--commission-rate=0.05 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--from=mywallet \
--node http://localhost:16701 \
--home ${HOME} /.gitopia \
--gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2 \
-y
Edit Validator Identities Informations
Copy MONIKER = "NAME_OF_YOUR_VALIDATOR"
PROFILE = "PGP_KEY_OF_KEYBASE"
DETAILS = "Describes Your Validator"
WEBSITE = "https://yourwebsite.com"
gitopiad tx staking edit-validator \
--moniker= "${MONIKER}" \
--identity= "${PROFILE}" \
--details= "${DETAILS}" \
--website= "${WEBSITE}" \
--chain-id=gitopia \
--commission-rate=0.05 \
--from=mywallet \
--node http://localhost:16701 \
--home ${HOME} /.gitopia \
--gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2 \
-y
Get Validator Info
Copy gitopiad status 2>&1 | jq .ValidatorInfo
Get Syncing Block
Copy gitopiad status 2>&1 | jq .SyncInfo
Get Peer Own Node
Copy echo $(gitopiad tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.gitopia/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Get Peer Node
Copy curl -sS http://localhost:16701/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}'
Unjail Validator
Copy gitopiad tx slashing unjail \
--from mywallet \
--chain-id gitopia \
--home ${HOME} /.gitopia \
--node http://localhost:16701 \
--gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2 \
-y
Jail Reason
Copy gitopiad query slashing signing-info $( gitopiad tendermint show-validator ) \
--node http://localhost:16701 \
--home ${HOME} /.gitopia
List All Active Validator
Copy gitopiad q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
List All Inactive Validator
Copy gitopiad q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
Show Validator Details
Copy gitopiad \
query staking validator \
$(gitopiad keys show \
$(gitopiad keys list --home ${HOME}/.gitopia--output json| jq -r ".[] .address" | tail -n1) \
--bech val -a) \
--chain-id gitopia \
--node http://localhost:16701
Token Management
Withdraw All Reward From Validator
Copy gitopiad tx distribution withdraw-all-rewards \
--from mywallet \
--chain-id gitopia \
--node http://localhost:16701 \
--home ${HOME} /.gitopia \
--gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2 \
-y
Withdraw Commision Reward From Validator
Copy gitopiad tx distribution withdraw-rewards $( gitopiad keys show mywallet --bech val -a ) \
--commission \
--from mywallet \
--chain-id gitopia \
--node http://localhost:16701 \
--home ${HOME} /.gitopia \
--gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2 \
-y
Delegate My Token to Own Validator
Copy gitopiad tx staking delegate $( gitopiad keys show wallet --bech val -a ) 100000ulore \
--from mywallet \
--home ${HOME} /.gitopia \
--node http://localhost:16701 \
--chain-id gitopia \
--gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2 \
-y
Delegate Your Token To Our Validator
Copy gitopiad tx staking delegate prefixVALOPExxxxxx 100000ulore \
--from mywallet \
--home ${HOME} /.gitopia \
--node http://localhost:16701 \
--chain-id gitopia \
--gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2 \
-y
Redelegate Tokens to Another Validator
Copy gitopiad tx staking redelegate $( gitopiad keys show wallet --bech val -a ) < TO_VALOPER_ADDRES S > 1000000ulore \
--from mywallet
--home ${HOME} /.gitopia \
--node http://localhost:16701 \
--chain-id gitopia \
--gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2 \
-y
Unbound or Unstake Your Tokens
Copy gitopiad tx staking unbond $( gitopiad keys show wallet --bech val -a ) 1000000ulore \
--from mywallet \
--home ${HOME} /.gitopia \
--node http://localhost:16701 \
--chain-id gitopia \
--gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2 \
-y
Send tokens to the wallet
Copy gitopiad tx bank send wallet <TO_WALLET_ADDRESS> 1000000ulore \
--from mywallet \
--home ${HOME}/.gitopia\
--node http://localhost:16701 \
--chain-id gitopia \
--gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2 \
-y
Governance
Install jq package for management json format
Ubuntu
apt install jq
CentOS
yum install jq
Arch Linux
pacman -S jq
List All Proposal
Copy gitopiad query gov proposals
How to Vote
Copy ### vote yes
gitopiad tx gov vote 1 yes \
--from mywallet \
--home ${HOME} /.gitopia \
--node http://localhost:16701 \
--chain-id gitopia \
--gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2 \
-y
### vote no
gitopiad tx gov vote 1 no \
--from mywallet \
--home ${HOME} /.gitopia \
--node http://localhost:16701 \
--chain-id gitopia \
--gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2 \
-y
### vote abstain
gitopiad tx gov vote 1 abstain \
--from mywallet \
--home ${HOME} /.gitopia \
--node http://localhost:16701 \
--chain-id gitopia \
--gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2 \
-y
### vote No With Veto
gitopiad tx gov vote 1 nowithveto \
--from mywallet \
--home ${HOME} /.gitopia \
--node http://localhost:16701 \
--chain-id gitopia \
--gas=auto --gas-prices=0.5ulore --gas-adjustment=1.2 \
-y
Last updated 5 months ago