Command Empeiria This is command about CLI Empe
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!
Copy --gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56
Add New Key
Copy emped keys add mywallet --home ${HOME} /.empe-chain
Recover Key
With Passphrase
Copy emped keys add mywallet --recover --home ${HOME} /.empe-chain
With Keyring
Copy emped keys add mywallet --recover --keyring-backend os --home ${HOME} /.empe-chain
List Key
Copy emped keys list --home ${HOME} /.empe-chain
Delete Key
Copy emped keys delete mywallet --home ${HOME} /.empe-chain
Export Key
Copy emped keys export mywallet --home ${HOME} /.empe-chain
Import Key
Copy emped keys import mywallet mywallet_file.backup --home ${HOME}/.empe-chain
Show All Balances Address
Copy for mywallet in ` emped keys list --home ${HOME} /.empe-chain--output json | jq -r ".[] .address"`
do
CHAIN_ID = "empe-testnet-2"
RPC = "http://localhost:16710"
emped q bank balances ${mywallet} --home ${HOME} /.empe-chain --chain-id ${CHAIN_ID} --node ${RPC}
done
Show Balance Address
Copy emped q bank balances mywallet_public_address --home ${HOME}/.empe-chain --chain-id empe-testnet-2 --node http://localhost:16710
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"
emped tx staking create-validator \
--amount=1000000uempe \
--pubkey=$(emped tendermint show-validator --home ${HOME} /.empe-chain ) \
--moniker = "${MONIKER}" \
--identity= "${PROFILE}" \
--details= "${DETAILS}" \
--website= "${WEBSITE}" \
--chain-id=empe-testnet-2 \
--commission-rate=0.05 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--from=mywallet \
--node http://localhost:16710 \
--home ${HOME} /.empe-chain \
--gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56 \
-y
Edit Validator Identities Informations
Copy MONIKER = "NAME_OF_YOUR_VALIDATOR"
PROFILE = "PGP_KEY_OF_KEYBASE"
DETAILS = "Describes Your Validator"
WEBSITE = "https://yourwebsite.com"
emped tx staking edit-validator \
--moniker= "${MONIKER}" \
--identity= "${PROFILE}" \
--details= "${DETAILS}" \
--website= "${WEBSITE}" \
--chain-id=empe-testnet-2 \
--commission-rate=0.05 \
--from=mywallet \
--node http://localhost:16710 \
--home ${HOME} /.empe-chain \
--gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56 \
-y
Get Validator Info
Copy emped status 2>&1 | jq .ValidatorInfo
Get Syncing Block
Copy emped status 2>&1 | jq .SyncInfo
Get Peer Own Node
Copy echo $(emped tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.empe-chain/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 emped tx slashing unjail \
--from mywallet \
--chain-id empe-testnet-2 \
--home ${HOME} /.empe-chain \
--node http://localhost:16710 \
--gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56 \
-y
Jail Reason
Copy emped query slashing signing-info $( emped tendermint show-validator ) \
--node http://localhost:16710 \
--home ${HOME} /.empe-chain
List All Active Validator
Copy emped 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 emped 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 emped \
query staking validator \
$(emped keys show \
$(emped keys list --home ${HOME}/.empe-chain--output json| jq -r ".[] .address" | tail -n1) \
--bech val -a) \
--chain-id empe-testnet-2 \
--node http://localhost:16710
Token Management
Withdraw All Reward From Validator
Copy emped tx distribution withdraw-all-rewards \
--from mywallet \
--chain-id empe-testnet-2 \
--node http://localhost:16710 \
--home ${HOME} /.empe-chain \
--gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56 \
-y
Withdraw Commision Reward From Validator
Copy emped tx distribution withdraw-rewards $( emped keys show mywallet --bech val -a ) \
--commission \
--from mywallet \
--chain-id empe-testnet-2 \
--node http://localhost:16710 \
--home ${HOME} /.empe-chain \
--gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56 \
-y
Delegate My Token to Own Validator
Copy emped tx staking delegate $( emped keys show wallet --bech val -a ) 100000uempe \
--from mywallet \
--home ${HOME} /.empe-chain \
--node http://localhost:16710 \
--chain-id empe-testnet-2 \
--gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56 \
-y
Delegate Your Token To Our Validator
Copy emped tx staking delegate prefixVALOPExxxxxx 100000uempe \
--from mywallet \
--home ${HOME} /.empe-chain \
--node http://localhost:16710 \
--chain-id empe-testnet-2 \
--gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56 \
-y
Redelegate Tokens to Another Validator
Copy emped tx staking redelegate $( emped keys show wallet --bech val -a ) < TO_VALOPER_ADDRES S > 1000000uempe \
--from mywallet
--home ${HOME} /.empe-chain \
--node http://localhost:16710 \
--chain-id empe-testnet-2 \
--gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56 \
-y
Unbound or Unstake Your Tokens
Copy emped tx staking unbond $( emped keys show wallet --bech val -a ) 1000000uempe \
--from mywallet \
--home ${HOME} /.empe-chain \
--node http://localhost:16710 \
--chain-id empe-testnet-2 \
--gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56 \
-y
Send tokens to the wallet
Copy emped tx bank send wallet <TO_WALLET_ADDRESS> 1000000uempe \
--from mywallet \
--home ${HOME}/.empe-chain\
--node http://localhost:16710 \
--chain-id empe-testnet-2 \
--gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56 \
-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 emped query gov proposals
How to Vote
Copy ### vote yes
emped tx gov vote 1 yes \
--from mywallet \
--home ${HOME} /.empe-chain \
--node http://localhost:16710 \
--chain-id empe-testnet-2 \
--gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56 \
-y
### vote no
emped tx gov vote 1 no \
--from mywallet \
--home ${HOME} /.empe-chain \
--node http://localhost:16710 \
--chain-id empe-testnet-2 \
--gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56 \
-y
### vote abstain
emped tx gov vote 1 abstain \
--from mywallet \
--home ${HOME} /.empe-chain \
--node http://localhost:16710 \
--chain-id empe-testnet-2 \
--gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56 \
-y
### vote No With Veto
emped tx gov vote 1 nowithveto \
--from mywallet \
--home ${HOME} /.empe-chain \
--node http://localhost:16710 \
--chain-id empe-testnet-2 \
--gas=auto --gas-prices=0.025uempe --gas-adjustment=1.56 \
-y
Last updated 4 months ago