Skip to content

yuichiroaoki/polygon-node-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

polygon-node-manager

setup

  1. Install dependencies
sudo apt install pkg-config libssl-dev
  1. Add .env file with your credentials
API_KEY=<telegram-bot-api-key>
CHAT_ID=<telegram-bot-chat-id>
JSON_RPC_URL=<json-rpc-url-for-your-node> (e.g. http://localhost:8545)
ALCHEMY_JSON_RPC_URL=<polygon-mainnet-json-rpc-url>

Check disk space

env RUST_LOG=info cargo run -- --disk

Delete logs

env RUST_LOG=info cargo run -- --clean

Check if bor is fully synced

env RUST_LOG=info cargo run -- --bor

Send a message with telegram

env RUST_LOG=info cargo run -- --msg "message"