Chain ID: seq-testnet-2
| Node Version: seq-testnet-2.2
note
First You Need Set Variabels
MONIKER=<YOUR_MONIKER_NAME>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export FUEL_CHAIN_ID="seq-testnet-2"" >> $HOME/.bash_profile
source $HOME/.bash_profile
- Wallet
- Validator
- Token
- Service
- Governance
- Utility
- Delete
Wallet
Create Wallet
fuelsequencerd keys add wallet
Recovery Wallet
fuelsequencerd keys add wallet --recover
List All Wallet
fuelsequencerd keys list
Delete Wallet
fuelsequencerd keys delete wallet
Check Wallet Balance
fuelsequencerd q bank balances $(fuelsequencerd keys show wallet -a)
Validator
note
Make sure you have adjust YOUR_KEYBASE_ID, YOUR_DETAILS, YOUR_WEBSITE_URL
Create Validator
fuelsequencerd tx staking create-validator \
--amount=1000000fuel \
--pubkey=$(fuelsequencerd tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$FUEL_CHAIN_ID \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1000 \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=10fuel
Edit Validator
fuelsequencerd tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$FUEL_CHAIN_ID \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=10fuel
Check Jailed Reason
fuelsequencerd query slashing signing-info $(fuelsequencerd tendermint show-validator)
Unjail Validator
fuelsequencerd tx slashing unjail --from wallet --chain-id $FUEL_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10fuel -y
Token
Withdraw Rewards
fuelsequencerd tx distribution withdraw-all-rewards --from wallet --chain-id $FUEL_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10fuel -y
Withdraw Rewards with Comission
fuelsequencerd tx distribution withdraw-rewards $(fuelsequencerd keys show wallet --bech val -a) --commission --from wallet --chain-id $FUEL_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10fuel -y
Delegate Tokens to Your Validator
fuelsequencerd tx staking delegate $(fuelsequencerd keys show wallet --bech val -a) 100000fuel --from wallet --chain-id $FUEL_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10fuel -y
Redelegate Tokens to Another Validator
fuelsequencerd tx staking redelegate $(fuelsequencerd keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 100000fuel --from wallet --chain-id $FUEL_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10fuel -y
Unbond Tokens from Your Validator
fuelsequencerd tx staking unbond $(fuelsequencerd keys show wallet --bech val -a) 100000fuel --from wallet --chain-id $FUEL_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10fuel -y
Send Tokens to Any Wallet
fuelsequencerd tx bank send wallet <TO_WALLET_ADDRESS> 100000fuel --from wallet --chain-id $FUEL_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10fuel -y
Service
Reload Service
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable fuelsequencerd
Disable Service
sudo systemctl disable fuelsequencerd
Start Service
sudo systemctl start fuelsequencerd
Stop Service
sudo systemctl stop fuelsequencerd
Restart Service
sudo systemctl restart fuelsequencerd
Check Service Status
sudo systemctl status fuelsequencerd
Check Service Logs
sudo journalctl -u fuelsequencerd -f --no-hostname -o cat
Governance
tip
For Vote, You can change the value of yes to no, abstain, no_with_veto
Vote
fuelsequencerd tx gov vote 1 yes --from wallet --chain-id $FUEL_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10fuel -y
List all Proposals
fuelsequencerd query gov proposals
Check Vote
fuelsequencerd tx gov vote PROPOSAL_NUMBER VOTE_OPTION --from wallet --chain-id $FUEL_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 10fuel -y
Create new Proposal
fuelsequencerd tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=10000000fuel \
--type="Text" \
--from=wallet \
--gas-adjustment 1.5 \
--gas "auto" \
--gas-prices=10fuel \
-y
Utility
Set Indexer null / kv
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.fuelsequencer/config/config.toml
Get Validator Info
fuelsequencerd status 2>&1 | jq .ValidatorInfo
Get Denom Info
fuelsequencerd q bank denom-metadata -oj | jq
Get Sync Status
fuelsequencerd status 2>&1 | jq .SyncInfo.catching_up
Get Latest Height
fuelsequencerd status 2>&1 | jq .SyncInfo.latest_block_height
Get Node Peer
echo $(fuelsequencerd tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.fuelsequencer/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Set Minimum Gas Price
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"10fuel\"/" $HOME/.fuelsequencer/config/app.toml
Enable Prometheus
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.fuelsequencer/config/config.toml
Reset Chain Data
fuelsequencerd tendermint unsafe-reset-all --home $HOME/.fuelsequencer --keep-addr-book
Delete
WARNING!!! Please, before you advance to the following step! The entire chain data will be gone! Make sure you have a backup of your priv_validator_key.json!
Delete Node
sudo systemctl stop fuelsequencerd && sudo systemctl disable fuelsequencerd && sudo rm /etc/systemd/system/fuelsequencerd.service && sudo systemctl daemon-reload && sudo rm -rf $(which fuelsequencerd) && rm -rf $HOME/.fuelsequencer