Ana içeriğe geç

Komutlar

not

Rehberimizden kurulum yaptıysanız aksi belirtilmediği sürece aşağıdaki kodlarda herhangi bir değişiklik yapmanıza gerek yoktur.

Servis İşlemleri​

Logları Kontrol Etme​

journalctl -fu c4ed -o cat

Node'u Başlatma​

systemctl start c4ed

Node'u Durdurma​

systemctl stop c4ed

Node'u Yeniden Başlatma​

systemctl restart c4ed

Node Senkronizasyon Durumu​

c4ed status 2>&1 | jq .SyncInfo

Node Bilgileri​

c4ed status 2>&1 | jq .NodeInfo

Node ID Öğrenme​

c4ed tendermint show-node-id

Node IP Adresini Öğrenme​

curl icanhazip.com

Node Peer Adresini Öğrenme​

echo $(c4ed tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.c4e-chain/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')

Cüzdan Yönetimi​

Cüzdanların Listesine Bakma​

c4ed keys list

Cüzdan Adresini Görme​

c4ed keys show $C4E_WALLET --bech val -a

Cüzdanı İçeri Aktarma​

c4ed keys add $C4E_WALLET --recover

Cüzdanı Silme​

c4ed keys delete $C4E_WALLET

Cüzdan Bakiyesini Kontrol Etme​

c4ed query bank balances $C4E_WALLET_ADDRESS

Token İşlemleri​

Bir Cüzdandan Diğer Bir Cüzdana Transfer Yapma​

c4ed tx bank send $C4E_WALLET_ADDRESS SENDING_CUZDAN_ADRESI 100000000uc4e

Proposal Oylamasına Katılma​

c4ed tx gov vote 1 yes --from $C4E_WALLET --chain-id=$C4E_CHAIN_ID --gas-prices 0.00001uc4e --gas-adjustment 1.5 --gas auto -y

Validatore Stake Etme / Delegate Etme​

c4ed tx staking delegate $C4E_VALOPER_ADDRESS 100000000uc4e --from=$C4E_WALLET --chain-id=$C4E_CHAIN_ID --gas-prices 0.00001uc4e --gas-adjustment 1.5 --gas auto -y

Stake'ten Çıkma​

c4ed tx staking unbond $(c4ed keys show $C4E_WALLET --bech val -a) 1000000uc4e --from $C4E_WALLET --chain-id $C4E_CHAIN_ID --fees 3000uc4e -y

Mevcut Validatorden Diğer Validatore Stake Etme / Redelegate Etme​

srcValidatorAddress: Mevcut Stake edilen validatorün adresi destValidatorAddress: Yeni stake edilecek validatorün adresi

c4ed tx staking redelegate srcValidatorAddress destValidatorAddress 100000000uc4e --from=$C4E_WALLET --chain-id=$C4E_CHAIN_ID --gas-prices 0.00001uc4e --gas-adjustment 1.5 --gas auto -y

Ödülleri Çekme​

c4ed tx distribution withdraw-all-rewards --from=$C4E_WALLET --chain-id=$C4E_CHAIN_ID --gas-prices 0.00001uc4e --gas-adjustment 1.5 --gas auto -y

Komisyon Ödüllerini Çekme​

c4ed tx distribution withdraw-rewards $C4E_VALOPER_ADDRESS --from=$C4E_WALLET --commission --chain-id=$C4E_CHAIN_ID --gas-prices 0.00001uc4e --gas-adjustment 1.5 --gas auto -y

Validator İşlemleri​

Validator Bilgileri​

c4ed status 2>&1 | jq .ValidatorInfo

Validator İsmini Değiştirme​

YENI-NODE-ADI yazan yere yeni validator/moniker isminizi yazınız. TR karakter içermemelidir.

c4ed tx staking edit-validator \
--new-moniker=YENI-NODE-ADI \
--chain-id=$C4E_CHAIN_ID \
--from=$C4E_WALLET \
--gas-prices 0.00001uc4e \
--gas-adjustment 1.5 \
--gas auto -y

Validator Komisyon Oranını Değiştirme​

commission-rate yazan bölümdeki değeri değiştiriyoruz.

c4ed tx staking edit-validator --commission-rate "0.02" --moniker=$C4E_NODENAME --from $C4E_WALLET --chain-id $C4E_CHAIN_ID --gas-prices 0.00001uc4e --gas-adjustment 1.5 --gas auto - y

Validator Bilgilerinizi Düzenleme​

Bu bilgileri değiştirmeden önce https://keybase.io/ adresine kayıt olarak aşağıdaki kodda görüldüğü gibi 16 haneli (XXXX0000XXXX0000) kodunuzu almalısınız. Ayrıca profil resmi vs. ayarları da yapabilirsiniz. $C4E_NODENAME ve $C4E_WALLET: Validator (Moniker) ve cüzdan adınız, değiştirmeniz gerekmez. Çünkü değişkenlere ekledik.

c4ed tx staking edit-validator \
--moniker=$C4E_NODENAME \
--identity=XXXX0000XXXX0000\
--website="YOU CAN WRITE YOUR WEBSITE IF YOU EXIST" \
--details="YOU CAN WRITE A SENTENCE INTRODUCING YOURSELF IN THIS SECTION" \
--chain-id=$C4E_CHAIN_ID \
--from=$C4E_WALLET

Validator Detayları​

c4ed q staking validator $(c4ed keys show $C4E_WALLET --bech val -a)

Jailing Bilgisi​

c4ed q slashing signing-info $(c4ed tendermint show-validator)

Slashing Parametreleri​

c4ed q slashing params

Validatoru Jail Durumundan Kurtarma​

c4ed tx slashing unjail --from $C4E_WALLET --chain-id $C4E_CHAIN_ID --gas-prices 0.00001uc4e --gas-adjustment 1.5 --gas auto -y

Actif Validator Listesi​

c4ed q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " 	 " + .description.moniker' | sort -gr | nl

Validator Anahtarını Kontrol Etme​

[[ $(c4ed q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(c4ed status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"

İmzalama Bilgisi​

c4ed q slashing signing-info $(c4ed tendermint show-validator)