Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------
- local_height=$(initiad status | jq -r .sync_info.latest_block_height); network_height=$(curl -s https://rpc.dinhcongtac221.fun/status | jq -r .result.sync_info.latest_block_height); blocks_left=$((network_height - local_height)); echo "Your node height: $local_height"; echo "Network height: $network_height"; echo "Blocks left: $blocks_left"
- --------------
- PEERS=$(curl -s --max-time 3 --retry 2 --retry-connrefused "https://rpc-initia-testnet.trusted-point.com/hetzner_peers.txt")
- if [ -z "$PEERS" ]; then
- echo "No peers were retrieved from the URL."
- else
- echo -e "\nPEERS: "$PEERS""
- sed -i "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" "$HOME/.initia/config/config.toml"
- echo -e "\nConfiguration file updated successfully.\n"
- fi
- --------------
- sudo systemctl restart initiad && sudo journalctl -u initiad -f -o cat
- --------------
- initiad tx mstaking create-validator \
- --amount 1000000uinit \
- --pubkey $(initiad tendermint show-validator) \
- --moniker "YOUR_MONIKER_NAME" \
- --identity "YOUR_KEYBASE_ID" \
- --details "YOUR_DETAILS" \
- --website "YOUR_WEBSITE_URL" \
- --chain-id initiation-1 \
- --commission-rate 0.05 \
- --commission-max-rate 0.20 \
- --commission-max-change-rate 0.05 \
- --from wallet \
- --gas=2000000 --fees=300000uinit \
- --node https://rpc.dinhcongtac221.fun/ \
- -y
- -------------
- initiad tx mstaking delegate $(initiad keys show $WALLET_NAME --bech val -a) <AMOUNT>uinit --from $WALLET_NAME --gas=2000000 --fees=300000uinit --node https://rpc.dinhcongtac221.fun/ -y
- ------------
- RPC="http://$(wget -qO- eth0.me)$(grep -A 3 "\[rpc\]" $HOME/.initia/config/config.toml | egrep -o ":[0-9]+")" && echo $RPC
- curl $RPC/status
- sed -i '/\[rpc\]/,/\[/{s/^laddr = "tcp:\/\/127\.0\.0\.1:/laddr = "tcp:\/\/0.0.0.0:/}' $HOME/.initia/config/config.toml
- sudo systemctl restart initiad
- sudo journalctl -u initiad -f -o cat --no-hostname
- curl $RPC/status
- echo $RPC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement