Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arddluma/rpc-block-sync-checker
Python script to check Block sync of multiple RPC endpoints
https://github.com/arddluma/rpc-block-sync-checker
block-sync-checker blockchain ethereum-rpc rpc rpc-block-sync rpc-blocks
Last synced: about 1 month ago
JSON representation
Python script to check Block sync of multiple RPC endpoints
- Host: GitHub
- URL: https://github.com/arddluma/rpc-block-sync-checker
- Owner: arddluma
- Created: 2023-04-10T13:07:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-10T15:42:01.000Z (almost 2 years ago)
- Last Synced: 2024-12-23T11:06:08.181Z (about 1 month ago)
- Topics: block-sync-checker, blockchain, ethereum-rpc, rpc, rpc-block-sync, rpc-blocks
- Language: Python
- Homepage:
- Size: 522 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RPC Block Sync Checker
Python script to check block sync of RPC endpoints, sends slack notification when difference is greater than threshold.
## Usage
Add required RPC endpoints to `rpc_endpoints.txt` list as follows:
Label(Chain):RPC1;RPC2 (make sure you use delimiter `:` for chain and `;` for RPCs)
Example:
```
Ethereum:https://eth.llamarpc.com;https://rpc.ankr.com/eth;https://ethereum.publicnode.com
```Add Slack webhook URL
Follow guide here https://api.slack.com/messaging/webhooks and replace `slack_webhook_url` line 78
Run the script
```
python3 blocksync.py
```
Example when RPCs are in sync,difference is lower than threshold and when is greater than threshold (10)