Cheatsheet
Chain-ID: 1516, network: odyssey-0
Story Client
Node status
curl localhost:26657/status | jq
Check logs
sudo journalctl -u story -f
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
Reload services
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable story
Disable Service
sudo systemctl disable story
Story-geth
Check logs
sudo journalctl -u story-geth -f
Start service
sudo systemctl start story-geth
Stop service
sudo systemctl stop story-geth
Restart service
sudo systemctl restart story-geth
Check service status
sudo systemctl status story-geth
Reload services
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable story-geth
Disable Service
sudo systemctl disable story-geth
Validator commands
Show validator info
curl localhost:$(sed -n '/\[rpc\]/,/laddr/ { /laddr/ {s/.*://; s/".*//; p} }' $HOME/.story/story/config/config.toml)/status | jq
Export validator public key
story validator export
Show validator private key
cat $HOME/.story/story/config/private_key.txt
Staking operations
Delegate to yourself
story validator stake --chain-id 1516 --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
story validator stake --chain-id 1516 --validator-pubkey <VALIDATOR_PUB_KEY_IN_HEX> --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 1516 --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 1516 --operator <OPERATOR_EVM_ADDRESS> --private-key $(cat $HOME/.story/story/config/private_key.txt | grep "PRIVATE_KEY" | awk -F'=' '{print $2}')
Unstake from yourself
story validator unstake --chain-id 1516 --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
story validator unstake --chain-id 1516 --validator-pubkey <VALIDATOR_PUB_KEY_IN_HEX> --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 1516 --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}')