Useful Commands
Story Node CLI
-
Node Info
curl -s localhost:26657/status | jq .result.sync_info.latest_block_height -
Node Synchronization Status
curl -s localhost:26657/status | jq .result.sync_info.catching_up -
Check Logs (story-geth)
sudo journalctl -u story-geth -f -o cat -
Check Logs (story)
sudo journalctl -u story -f -o cat -
Stop Service story
sudo systemctl stop story -
Stop Service story-geth
sudo systemctl stop story-geth -
Export Validator Public Key
story validator export -
Export Derived EVM Private Key
story validator export --export-evm-key -
Extract Peers from Node
curl -s http://localhost:26657/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):26656"' -
Remove Current Peer
node_id=$(curl -s http://localhost:26657/status | jq -r '.result.node_info.id')\npublic_ip=$(curl -s ifconfig.me)\necho "${node_id}@${public_ip}:26656" -
Check Story Version
story-geth version -
Check Geth Version
geth version -
Check Configuration
cat .story/story/config/config.toml