摘要
Base Sepolia is the official testnet for Base, an Ethereum Layer 2 optimistic rollup. This page provides the RPC endpoint, chain ID, faucet links, and common debugging steps for developers testing on Base Sepolia.
Base Sepolia decision checklist
Before you start testing on Base Sepolia, confirm these items:
- Chain ID: 84532 (0x14a34)
- RPC endpoint: Choose a provider that meets your rate limit and reliability needs. Public endpoints are fine for light testing; for higher throughput, consider a dedicated node or a managed RPC service.
- Faucet: You need Sepolia ETH to pay gas. Use a reliable faucet (see below).
- Explorer: Basescan Sepolia or Blockscout for transaction verification.
- Bridge: If you need to bridge assets from Sepolia, check the official Base bridge (testnet mode).
What is Base Sepolia?
Base Sepolia is the official testnet for Base, an Ethereum Layer 2 optimistic rollup built on the OP Stack. It mirrors the mainnet environment, allowing developers to deploy and test smart contracts, dApps, and infrastructure without using real funds. The testnet uses Sepolia ETH as its native gas token.
Key characteristics:
- Chain ID: 84532
- Block time: ~2 seconds
- Native currency: Sepolia ETH (not real ETH)
- EVM compatibility: Full Ethereum Virtual Machine support
Base Sepolia RPC endpoints
You can connect to Base Sepolia using an RPC endpoint. Here are common options:
| Provider | RPC URL | WebSocket URL | Type |
|---|---|---|---|
| OnFinality | https://base-sepolia.api.onfinality.io/public | wss://base-sepolia.api.onfinality.io/public | Public (rate-limited) |
| PublicNode | https://base-sepolia-rpc.publicnode.com | wss://base-sepolia-rpc.publicnode.com | Public |
| Alchemy | https://base-sepolia.g.alchemy.com/v2/<api-key> | wss://base-sepolia.g.alchemy.com/v2/<api-key> | Requires API key |
| dRPC | https://base-sepolia.drpc.org | wss://base-sepolia.drpc.org | Public / Premium |
| Thirdweb | https://84532.rpc.thirdweb.com | – | Requires API key |
For production-grade testing with higher rate limits, archive data, or WebSocket support, consider a managed RPC service like OnFinality or a dedicated node.
How to connect to Base Sepolia
Using curl
curl https://base-sepolia.api.onfinality.io/public \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
Using Web3.js
const Web3 = require('web3');
const web3 = new Web3('https://base-sepolia.api.onfinality.io/public');
web3.eth.getBlockNumber().then(console.log);
Using ethers.js
const { ethers } = require('ethers');
const provider = new ethers.providers.JsonRpcProvider('https://base-sepolia.api.onfinality.io/public');
provider.getBlockNumber().then(console.log);
Chain settings for wallets
To add Base Sepolia to MetaMask or other wallets, use these settings:
- Network Name: Base Sepolia
- RPC URL:
https://base-sepolia.api.onfinality.io/public(or your preferred endpoint) - Chain ID: 84532
- Currency Symbol: ETH
- Block Explorer URL:
https://sepolia.basescan.org
Faucet
You need Sepolia ETH to pay gas on Base Sepolia. Get test ETH from:
Most faucets require a social login or a wallet address and have daily limits (e.g., 0.01 ETH/day).
Common pitfalls and debugging
1. Insufficient funds
Ensure your wallet has Sepolia ETH. If you bridged from Sepolia, check the bridge status.
2. Wrong chain ID
Double-check that your dApp or wallet uses chain ID 84532. Using mainnet chain ID (8453) will fail.
3. RPC rate limits
Public endpoints often have rate limits. If you encounter 429 Too Many Requests, consider upgrading to a paid plan or using a dedicated node. See RPC pricing for options.
4. Transaction stuck or pending
If a transaction is stuck, try:
- Increasing gas price
- Resubmitting with a higher nonce
- Using
eth_getTransactionReceiptto check status
5. WebSocket disconnections
For real-time updates, use WebSocket endpoints. If you experience drops, ensure your client handles reconnection gracefully.
When to use a managed RPC service
While public endpoints work for basic testing, consider a managed RPC service if you:
- Need higher rate limits for load testing
- Require archive data for historical queries
- Use WebSocket subscriptions for event listening
- Want dedicated node performance without managing infrastructure
OnFinality offers both public and private RPC endpoints for Base Sepolia, with flexible pricing and global node coverage.
Key Takeaways
- Base Sepolia chain ID is 84532, using Sepolia ETH as gas.
- Multiple public RPC endpoints are available; choose based on your reliability and rate limit needs.
- Always verify you have test ETH from a faucet before sending transactions.
- For production testing, consider a managed RPC service to avoid rate limits and get archive support.
- Use the official explorers (Basescan Sepolia or Blockscout) to debug transactions.
Frequently Asked Questions
Q: What is the Base Sepolia RPC endpoint?
A: A common public endpoint is https://base-sepolia.api.onfinality.io/public. You can also use other providers listed above.
Q: How do I get Sepolia ETH for Base Sepolia? A: Use a faucet like Alchemy's Base Sepolia Faucet or Coinbase Faucet. You may need to bridge from Sepolia if the faucet only gives ETH on Ethereum Sepolia.
Q: Can I use the same RPC endpoint for mainnet? A: No. Base mainnet uses chain ID 8453 and a different RPC endpoint. Always double-check the network.
Q: What is the block explorer for Base Sepolia? A: Basescan Sepolia and Blockscout.
Q: Why are my transactions failing? A: Common reasons: insufficient gas, wrong chain ID, or RPC rate limits. Check the error message and adjust accordingly.