Skip to content

Latest commit

 

History

History
78 lines (65 loc) · 1.31 KB

useful_commands.md

File metadata and controls

78 lines (65 loc) · 1.31 KB

Useful Commands

SystemD

Start services

story-geth

sudo systemctl start story-geth 

story

sudo systemctl start story 

Check logs

story-geth

sudo journalctl -u story-geth -f -o cat

story

sudo journalctl -u story -f -o cat

Restart story node

story-geth

sudo systemctl restart story-geth

story

sudo systemctl restart story

Wallet

Check key wallet

story validator export | grep "EVM Public Key:" | awk '{print $NF}'

Export validator Public Key & Private key

story validator export

Export the derived EVM private key

story validator export --export-evm-key

Node info

node status

curl localhost:26657/status

latest block height

curl -s localhost:26657/status | jq .result.sync_info.latest_block_height

node is synchronized

curl -s localhost:26657/status | jq .result.sync_info.catching_up

current node peer

node_id=$(curl -s http://localhost:26657/status | jq -r '.result.node_info.id')
public_ip=$(curl -s ifconfig.me)
echo "${node_id}@${public_ip}:26656"

node peers

curl -s http://localhost:26657/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):26656"'