Here is a quick guide to deploying your own on-chain monitor severless with cloudflare worker
1️⃣ The Setup
First, head over to Cloudflare and create a new Worker.
You have two options for deployment:
• Upload via Wrangler (CLI) for the pros.
• Or simply copy/paste the script manually into the Cloudflare web editor.
2️⃣ The Connection (RPC)
You need access to the chain.
• Find an RPC provider (Get a free one, but I recommend having a paid one as a backup).
• In Cloudflare settings, create Secret Variables: MY_RPC_URL (Primary) MY_RPC_URL2 (Backup)
3️⃣ The Data Layer
To scrape and parse additional data, we utilize Blockscout's free tier or etherscan
• Sign up at Blockscout or etherscan
• generate an API Key.
• Add this to your Cloudflare Secret Variables as: BLOCKSCOUT_API_KEY
4️⃣ The Code
I’ve open-sourced the worker script. It handles the request routing and API calls for you.
Grab the code here: 🔗
https://github.com/nesia26/severless-EVMexplorer/blob/main/worker.jsDemo
Ethereum Explorer
https://etherscan-lite.iqbal.sbs/Base Explorer
https://baseplorer.iqbal.sbs/