1,000,000 free RPC requestsJust a wallet, via x402.
Start buildingETH-Ping — Let me ping your Ethereum Node!
At QuickNode, we always think of our customers and the problems they encounter using Web3. We recently started noticing that some were facing a problem with monitoring their Ethereum Node status.

February 3, 2019 — 3 min read

At QuickNode, we always think of our customers and the problems they encounter using Web3. We recently started noticing that some were facing a problem with monitoring their Ethereum Node status.

The team quickly decided to write a script which would help customers (or anyone, really) monitor their Ethereum node connection status. Is the Node responding to RPC requests or not?

Checking if your Ethereum node is alive or not? . Contribute to buddies2705/Eth-Ping development by creating an account on GitHub.
What does the Script do?
The script continuously calls “eth_blockNumber” every 15 seconds and checks if the Node is responding properly or not. If something is off, you can have it send you an email notification, so you can take appropriate action.
We have added a config.json which you need to change accordingly.
rpcURL — Add your Node RPC URL
email — Add Your Email
password — Add Your Email Password
recipient- Add recipients URL
emailSubject — Add email subject
emailText — Add email Text
emailHtml — Add email text in HTML (if this is configured, our script will ignore above plain email text (emailText))
Allow less secure app if you want to use Gmail mail service; follow this doc and Change account access for less secure apps
We are using Gmail, so you need to change a security setting for your Gmail account (please check this doc). Also, you need to change a few variables, such as adding your node URL and Gmail username & password. Also, change ‘from’ and ‘to’, and other things accordingly related to the mail which will get sent when the script detects that your node is down.
Once the configuration is done we can test our email setup by running below command.
npm run testmail
You need to install NodeJs and clone the repository.
Check this for installing NodeJs
git clone https://github.com/buddies2705/Eth-Ping npm install npm start
We recommend you to use PM2 to run above script, as it restarts the script if it gets crashed for XYZ reason.
We will be tweaking it over time and encourage you to use this script. Feedbacks, Comments, and Pull Requests are welcome!
Need help with your project or have questions? Contact us via this form, on Twitter @QuickNode, or ping us on Discord!
Founded in 2017, Quicknode deploys institutional-grade blockchain infrastructure for developers and enterprises. With 99.99% uptime and support for 80+ chains, teams build and scale onchain applications without compromise.
The latest engineering insights, product updates, and web3 news delivered straight to your inbox.