Web3 Infrastructure: RPCs, Nodes, Infura/Alchemy (The Invisible Plumbing)
Source: Dev.to
Blockchains Are “Blind” Without Nodes
Remember Day 6?
Smart contracts live on‑chain, but they can’t “see” your wallet balance, pending transactions, or the current block without asking someone.
That “someone” is an RPC node – a computer constantly synced to the blockchain, ready to answer questions like:
- “What’s my ETH balance?”
- “Did my transaction confirm?”
- “What’s the latest block?”
Without nodes, MetaMask is just a fancy calculator with no internet connection.
Analogy: Your phone doesn’t store the entire internet; it asks Google (“Hey, what’s the weather?”). RPC nodes are Web3’s Google.
What Is an RPC Node? (Simple Version)
- RPC = Remote Procedure Call – computer A asks computer B to run a function and return the result.
- RPC Node = a full copy of the blockchain that:
- Downloads every block, transaction, and smart‑contract state.
- Speaks JSON‑RPC (the standard language for blockchain queries).
- Acts as a middle‑man between your dApp/wallet and the chain.
Every time you:
- Check a balance in MetaMask
- Send a transaction
- Query Uniswap prices
MetaMask sends an RPC request to a node somewhere.
Real example: When you deployed your first contract on Sepolia (Day 9), Remix IDE called an RPC endpoint: “Hey, broadcast this transaction for me.”
The RPC URL – Web3’s “Phone Number”
Every blockchain connection starts with an RPC URL, e.g.:
https://eth-sepolia.g.alchemy.com/v2/YOUR_API_KEY
https://mainnet.infura.io/v3/YOUR_PROJECT_ID
Breakdown
| Part | Meaning |
|---|---|
eth-sepolia | Ethereum Sepolia testnet |
alchemy.com / infura.io | Node‑provider |
YOUR_API_KEY / YOUR_PROJECT_ID | Your free developer credentials |
MetaMask → Settings → Networks → Ethereum Mainnet → RPC URL is exactly this string.
Pro tip: Copy the URL from your Alchemy/Infura dashboard, paste it into MetaMask’s custom network, and you’re instantly connected to any chain.
Running Your Own Node vs. Using a Provider
Option 1 – Run Your Own (Hardcore)
geth --sepolia --http --http.api eth,net,web3
- Downloads hundreds of GBs.
- Must run 24/7.
- Gives you full control, but incurs electricity costs and crashes when your laptop sleeps.
Best for: Privacy‑focused users, MEV bots, enterprise dApps.
Option 2 – Use a Provider (99 % of devs)
Infura (ConsenSys) and Alchemy power ~90 % of Web3.
| Why they win |
|---|
| 99.99 % uptime (your node crashes = your dApp dies) |
| Auto‑scaling (Uniswap handles 1M+ req/sec) |
| Free tiers (≈ 300k requests/day) |
| Built‑in analytics, debugging, archiving |
When you followed Day 9 Sepolia deploy you already used their node without realizing it.
Infura vs. Alchemy – Provider Showdown
| Feature | Infura | Alchemy | Winner |
|---|---|---|---|
| Free tier | 100 k req/day | 300 k req/day | Alchemy |
| Uptime | 99.9 % | 99.99 % | Alchemy |
| Analytics | Basic | God‑tier dashboard | Alchemy |
| L2 support | Good | Excellent | Alchemy |
| Ethereum Foundation ties | Strong | Growing | Tie |
My pick: Alchemy – better free tier + dashboard makes debugging way easier.
Switching test: Grab free API keys from both, deploy the same contract, and you’ll see comparable speed for small projects.
Real‑World: How MetaMask + RPCs Actually Work
- You click “Swap ETH → USDC” on Uniswap.
- Uniswap asks RPC: “What’s my ETH balance? USDC price?”
- MetaMask asks RPC: “Can I sign this tx? What’s the gas price?”
- You approve → MetaMask broadcasts the tx via RPC.
- RPC broadcasts to Ethereum miners/validators.
- After ~6 blocks, RPC confirms “Tx success!”
Every step is an RPC call. No RPC = no Web3.
What if Infura goes down? Switch the RPC URL in MetaMask settings – it takes ~30 seconds.
Why This Matters for Builders (The DevRel Angle)
| Situation | What to Check |
|---|---|
| Junior dev sees “contract deploy failed” | Verify RPC status first. |
| Scaling dApp runs out of free tier | Upgrade to a paid plan (≈ $49/mo). |
| Privacy‑focused project | Run your own node + Tor. |
| MEV bot | Use archive nodes (full historical data). |
From my Sepolia deploys: I spent 2 hrs debugging “transaction underpriced” before realizing my RPC was rate‑limited. Never again.
Pro move: Keep 2–3 RPC URLs ready – primary, backup, and (if possible) self‑hosted.
Hands‑On: Set Up Your Own RPC Pipeline (≈ 5 min)
-
Sign up at a provider (free tier).
-
Create an app → copy the Sepolia RPC URL.
-
MetaMask → Settings → Networks → Add Network
| Field | Value |
|---|---|
| Network Name | Sepolia (Alchemy) |
| RPC URL | https://eth-sepolia.g.alchemy.com/v2/YOUR_KEY |
| Chain ID | 11155111 |
| Currency Symbol | ETH |
| Block Explorer URL (optional) | https://sepolia.etherscan.io |
-
Test: Send 0.001 Sepolia ETH to your address. It should appear instantly.
-
Challenge: Deploy the contract from Day 9 using your Alchemy RPC vs. Infura. Compare speed.
Reflection – The “Aha” Moment
RPCs felt boring until I realized: MetaMask isn’t magic; it’s just a fancy RPC client.
Understanding nodes explains why:
- Transactions get “stuck” (RPC rate limits).
- dApps crash during congestion (provider overload).
- “Private” wallets aren’t truly private (shared RPCs see everything).
Next time someone says “Web3 is just JSON over HTTPS,” nod knowingly.
Key Takeaway
RPC nodes are Web3’s Google – every wallet click, swap, and contract call goes through them.
Infura and Alchemy handle the bulk of traffic, but knowing how to choose, configure, and (if needed) run your own node is essential for reliable, scalable, and private blockchain development.
# 90% of traffic so you don't have to.
## What to do next
### Learning
- Set up an Alchemy account + add a custom RPC in MetaMask.
- Read **Day 23 (On‑chain identity)** – remember that ENS queries also hit RPCs (Stay tuned).
### Building
- Bookmark three RPC providers: **Alchemy**, **Infura**, **QuickNode**.
- Never hard‑code a single RPC URL in production.
### Join us
- Drop your “RPC horror story” below 👇
[Web3ForHumans](https://t.me/Web3ForHumans) – Telegram: share your node setups!
Follow me on:
- [Medium](https://medium.com/@Ribhavmodi)
- [Twitter](https://x.com/RibsModi)
- [Future](https://future.forem.com/@ribhavmodi/)
Further Reading
- Alchemy – RPC Node Guide
- Cherry Servers – What is an RPC Node
- MetaMask – How to add a custom RPC
- Alchemy vs Infura comparison