yuichiroaoki / polygon-node-manager

Polygon Node Manager

Home Page:https://medium.com/coinmonks/how-i-run-a-polygon-node-for-flashloan-bots-71229e1a905d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"