Chain ID: aeneid
| Node Version: v1.3.0
- Validator
- Token
- Service
- Utility
- Geth
- Delete
Validator
Validator Info
curl localhost:$(sed -n '/\[rpc\]/,/laddr/ { /laddr/ {s/.*://; s/".*//; p} }' $HOME/.story/story/config/config.toml)/status | jq
View your validator key
story validator export
Export EVM private key
story validator export --export-evm-key
View EVM private key and make a key backup
cat $HOME/.story/story/config/private_key.txt
Create Validator, Locked
story validator create --stake 1024000000000000000000 --moniker $MONIKER --chain-id 1315 --unlocked=false
Create Validator, Unlocked
story validator create --stake 1024000000000000000000 --moniker $MONIKER --chain-id 1315 --unlocked=true
Unjail Validator
story validator unjail --rpc https://aeneid.storyrpc.io --chain-id 1315
Token
Withdraw Rewards
story tx distribution withdraw-all-rewards --from wallet --chain-id $STORY_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025ulume -y
Withdraw Rewards with Comission
story tx distribution withdraw-rewards $(story keys show wallet --bech val -a) --commission --from wallet --chain-id $STORY_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.025ulume -y
Delegate Tokens to Your Validator
story validator stake --chain-id 1315 --validator-pubkey $(story validator export | grep "Compressed Public Key (hex)" | awk '{print $NF}') --stake 1000000000000000000 --private-key $(cat $HOME/.story/story/config/private_key.txt | grep "PRIVATE_KEY" | awk -F'=' '{print $2}')
Delegate on Behalf of Other Delegator
story validator stake-on-behalf --chain-id 1315 --validator-pubkey <VALIDATOR_PUB_KEY_IN_HEX> --delegator-pubkey <DELEGATOR_PUB_KEY_IN_HEX> --stake 1000000000000000000 --private-key $(cat $HOME/.story/story/config/private_key.txt | grep "PRIVATE_KEY" | awk -F'=' '{print $2}')
Add Operator
story validator add-operator --chain-id 1315 --operator <OPERATOR_EVM_ADDRESS> --private-key $(cat $HOME/.story/story/config/private_key.txt | grep "PRIVATE_KEY" | awk -F'=' '{print $2}')
Unbond Tokens from Your Validator
story validator unstake --chain-id 1315 --validator-pubkey $(story validator export | grep "Compressed Public Key (hex)" | awk '{print $NF}') --unstake 1000000000000000000 --private-key $(cat $HOME/.story/story/config/private_key.txt | grep "PRIVATE_KEY" | awk -F'=' '{print $2}')
Unstake on Behalf of Other Delegator. To do so, You must be a registered authorized operator for this delegator.
story validator unstake-on-behalf --chain-id 1315 --validator-pubkey <VALIDATOR_PUB_KEY_IN_HEX> --delegator-pubkey <DELEGATOR_PUB_KEY_IN_HEX> --unstake 1000000000000000000 --private-key $(cat $HOME/.story/story/config/private_key.txt | grep "PRIVATE_KEY" | awk -F'=' '{print $2}')
Remove Operator
story validator remove-operator --operator <OPERATOR_EVM_ADDRESS> --private-key $(cat $HOME/.story/story/config/private_key.txt | grep "PRIVATE_KEY" | awk -F'=' '{print $2}')
Set or Change Withdrawal Address
story validator set-withdrawal-address --withdrawal-address <YOUR_EVM_ADDRESS> --private-key $(cat $HOME/.story/story/config/private_key.txt | grep "PRIVATE_KEY" | awk -F'=' '{print $2}')
Service
Reload Service
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable story
Disable Service
sudo systemctl disable story
Start Service
sudo systemctl start story
Stop Service
sudo systemctl stop story
Restart Service
sudo systemctl restart story
Check Service Status
sudo systemctl status story
Check Service Logs
sudo journalctl -u story -f --no-hostname -o cat
Utility
Get Latest Height
story status 2>&1 | jq .sync_info
Get Node Peer
echo "$(curl localhost:$(sed -n '/\[rpc\]/,/laddr/ { /laddr/ {s/.*://; s/".*//; p} }' $HOME/.story/story/config/config.toml)/status | jq -r '.result.node_info.id')@$(wget -qO- eth0.me):$(sed -n '/Address to listen for incoming connection/{n;p;}' $HOME/.story/story/config/config.toml | sed 's/.*://; s/".*//')"
Your enode
geth --exec "admin.nodeInfo.enode" attach ~/.story/geth/aeneid/geth.ipc
Enable Prometheus
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.story/story/config/config.toml
Geth Commands
Get Latest Height
geth --exec "eth.blockNumber" attach ~/.story/geth/aeneid/geth.ipc
Peers Your Client is Connected to
geth --exec "admin.peers" attach ~/.story/geth/aeneid/geth.ipc
Check Sync
geth --exec "eth.syncing" attach ~/.story/geth/aeneid/geth.ipc
Check Gas Price
geth --exec "eth.gasPrice" attach ~/.story/geth/aeneid/geth.ipc
Check Account Balance
geth --exec "eth.getBalance('<YOUR_EVM_ADDRESS>')" attach ~/.story/geth/aeneid/geth.ipc
Delete Node
sudo systemctl stop story && sudo systemctl disable story && sudo rm /etc/systemd/system/story.service && sudo systemctl daemon-reload && sudo rm -rf $(which story) && rm -rf $HOME/.story
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 story && sudo systemctl disable story && sudo rm /etc/systemd/system/story.service && sudo systemctl daemon-reload && sudo rm -rf $(which story) && rm -rf $HOME/.story