Base Chain ID and RPC Endpoint: How to Connect to Base

By Daniel Chayra, Spectrum Nodes · Updated November 4, 2026 · Chain values checked November 3, 2026
Short answer: Base mainnet uses chain ID 8453, which eth_chainId returns as 0x2105. Gas is paid in ETH, the public RPC endpoint is https://mainnet.base.org, and the block explorer is https://basescan.org. Base Sepolia, the testnet, uses chain ID 84532 at https://sepolia.base.org. Base's docs say the public endpoints are rate limited and not suitable for production apps. For production, Spectrum Nodes serves Base mainnet and Base Sepolia with tracing and archive data, both on our Free plan. In our September to October 2026 test, Spectrum's Boosted Nodes returned Base block traces 3.2× faster than Alchemy at the median.
| Setting | Base mainnet | Base Sepolia (testnet) |
|---|---|---|
| Chain ID (decimal) | 8453 | 84532 |
Chain ID (hex, as eth_chainId returns it) | 0x2105 | 0x14a34 |
| Currency symbol | ETH | ETH |
| Native decimals | 18 | 18 |
| Public HTTPS RPC | https://mainnet.base.org | https://sepolia.base.org |
| Transaction submission only | https://mainnet-sequencer.base.org | https://sepolia-sequencer.base.org |
| Public WebSocket | None | None |
| Block explorer | https://basescan.org | https://sepolia.basescan.org |
| Block time | 2 seconds, then 200 ms once Denim activates (targeted for November 5, 2026, 18:00 UTC) | 200 ms since October 21, 2026 |
| Faucet | None | Spectrum Base Sepolia faucet |
Values from Base's "Connect to Base" docs and upgrades page, checked November 3, 2026. We confirmed both chain IDs by calling eth_chainId on the public endpoints the same day, and timed blocks from their timestamps: 2.0 seconds apart on mainnet and 0.2 seconds on Base Sepolia, averaged over the last 5,000 blocks.
Base is an Ethereum layer 2, so MetaMask, viem, ethers.js, and other EVM tools connect with the values above. Two details catch people out. Base gives you a separate endpoint that only sends transactions, and mainnet switches to 200 ms blocks on November 5, 2026.
Spectrum Nodes publishes this guide. The speed figures further down come from our own tests, with the method and dates next to each table.
What Changes When Base Moves to 200 ms Blocks?
Base mainnet goes from one block every 2 seconds to five blocks a second when the Denim upgrade activates. Base's docs target November 5, 2026 at 18:00 UTC. Base Sepolia has run Denim since October 21, 2026.
- Block numbers advance ten times faster. Code that treats a block count as a duration breaks. A 30 block timeout lasts 6 seconds instead of 60. Base's docs list timelocks, vesting schedules, deadlines, and governance voting periods measured in blocks. Logic built on
block.timestampis unaffected. - Flashblocks go away. Denim replaces them with canonical 200 ms blocks, so apps that read Flashblocks must move to canonical block and RPC streams.
- Responses gain millisecond timestamps. Blocks, headers, transactions, logs, and receipts get optional
timestampMsorblockTimestampMsfields. The seconds basedtimestampfield stays as it is. - Polling gets ten times more expensive. An app that requests each new block makes ten calls where it made one. Subscribe to
newHeadsover WebSocket instead.
Point your staging build at Base Sepolia to see the new block pace before mainnet switches.
How Do You Get a Spectrum Base RPC Endpoint?
Create a free Spectrum account, add a Base endpoint in the dashboard, and copy its URL.
- Sign up at https://dashboard.spectrumnodes.com/auth/signup. Base mainnet and Base Sepolia are on our Free plan: 10M credits a month at 25 requests per second.
- Open Nodes, click Create Endpoint, and pick Base, then Mainnet or the Sepolia testnet.
- Choose the node type. Pruned serves current and recent state. Archive serves balances and contract state at any past block.
- Copy the HTTPS and WebSocket URLs for the region closest to your servers.
- Save them as
BASE_RPC_URLandBASE_WSS_URLin your environment.
Keep the URL private. The dashboard lets you limit each endpoint to your servers' IP addresses, and to your own domains through CORS for browser apps.
How Do You Add Base to MetaMask?
MetaMask lists Base as a supported network, so you add it with one click and then swap in your own RPC URL.
- In the MetaMask extension, open the menu at the top right and select "Networks".
- Scroll to "Additional networks" and click "Add" next to Base.
- To use your Spectrum URL, click the three dots next to Base, choose "Edit", open the "Default RPC URL" dropdown, click "Add RPC URL", paste your URL, and save.
MetaMask's help center notes that a custom RPC URL on Base turns off Smart Transactions, including MEV protection, until you switch back to the default URL.
In any other wallet, or for Base Sepolia, add a custom network with these fields:
- Network name: Base (or Base Sepolia)
- RPC URL: your Spectrum URL, or https://mainnet.base.org (https://sepolia.base.org)
- Chain ID: 8453 (84532)
- Currency symbol: ETH
- Block explorer URL: https://basescan.org (https://sepolia.basescan.org)
Don't enter https://mainnet-sequencer.base.org as a wallet's RPC URL. Base's docs reserve it for sending transactions. When we sent it eth_chainId and eth_blockNumber on November 3, 2026, both came back with HTTP 403 and "rpc method is not allowed". For test ETH, our Base Sepolia faucet gives 0.1 ETH every 24 hours.
How Do You Test a Base RPC Endpoint With curl?
Send eth_chainId and eth_blockNumber. A healthy Base mainnet endpoint returns 0x2105 for the chain ID and a block number that keeps rising.
curl -s https://mainnet.base.org \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}' # {"jsonrpc":"2.0","id":1,"result":"0x2105"} curl -s "$BASE_RPC_URL" \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}' # {"jsonrpc":"2.0","id":1,"result":"0x..."} latest block, in hex
0x2105 is 8453 in hex, and Base Sepolia answers 0x14a34. Run eth_blockNumber twice, a few seconds apart. On mainnet the number rises by one every 2 seconds today and by five a second after Denim. If it stays the same, the endpoint has stopped following the chain.
How Do You Connect to Base With viem or ethers.js?
viem ships Base as a built in chain, so you only pass your URL. Always pass it, because http() with no argument sends your requests to mainnet.base.org, the public URL in viem's chain definition. This snippet uses viem 2 and reads a wallet's ETH and USDC balances.
import { createPublicClient, erc20Abi, formatUnits, http } from 'viem' import { base } from 'viem/chains' // baseSepolia for the testnet const client = createPublicClient({ chain: base, transport: http(process.env.BASE_RPC_URL), // without a URL, viem calls mainnet.base.org }) const usdc = '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913' // USDC on Base, 6 decimals const wallet = process.env.WALLET_ADDRESS as `0x${string}` const [chainId, eth, usd] = await Promise.all([ client.getChainId(), // 8453 client.getBalance({ address: wallet }), // 18 decimals client.readContract({ address: usdc, abi: erc20Abi, functionName: 'balanceOf', args: [wallet] }), ]) console.log(chainId, formatUnits(eth, 18), formatUnits(usd, 6))
On ethers.js 6, pin the provider to Base so it doesn't keep sending eth_chainId to check the chain, and open a WebSocket for new blocks:
import { JsonRpcProvider, WebSocketProvider } from 'ethers' const provider = new JsonRpcProvider(process.env.BASE_RPC_URL, 8453, { staticNetwork: true }) const ws = new WebSocketProvider(process.env.BASE_WSS_URL!, 8453) ws.on('block', (n) => console.log('new Base block', n))
Is the Public Base RPC Enough for Production?
For a wallet, a testnet build, or a quick script, yes. For an app with users, no, and Base's docs say so: "Our RPCs are rate-limited, they are not suitable for production apps."
- Limits: Base doesn't publish the request limits, so you can't plan capacity around them.
- WebSocket: "Base does not provide a free public WebSocket RPC endpoint," per its docs. After Denim, that leaves you polling five blocks a second over HTTPS.
- Logs and traces: On November 3, 2026, mainnet.base.org answered
eth_getLogsfor a single block with HTTP 429, "request limit reached", and refuseddebug_traceBlockByNumberandtrace_blockwith "rejected due to request filter settings". - Accountability: A vendor review asks for a SOC 2 report and a support contact. A public endpoint gives you neither.
Our full test of the public endpoint, plus the steps to move off it with a fallback provider, are in Can You Use the Base Public RPC in Production?
What Does Spectrum Nodes Offer on Base?
We serve RPC on Base mainnet and Base Sepolia with tracing and archive data, plus Spectrum's Boosted Nodes, unified APIs, and webhooks on Base, all from one account.
| What you get | Base mainnet | Base Sepolia |
|---|---|---|
| HTTPS and WebSocket URLs per region | Yes | Yes |
| Debug and trace methods | Yes | Yes |
| Archive data | Yes | Yes |
| On the Free plan | Yes | Yes |
From our supported chains page, checked November 3, 2026.
Base Block Traces: Spectrum's Boosted Nodes vs Alchemy
Spectrum's Boosted Nodes returned Base block traces in a median of 126 ms against 409 ms on Alchemy, 3.2× faster. In the slowest 5% of requests, they took 399 ms against 2,120 ms, 5.3× faster.
Base block traces (debug_traceBlockByNumber) | Spectrum's Boosted Nodes | Alchemy |
|---|---|---|
| Median, Finland server | 126 ms | 409 ms |
| p95 (slowest 5%), Finland server | 399 ms | 2,120 ms |
| Median, Canada server | 285 ms | 620 ms |
Spectrum's RPC monitor sent the same call to Spectrum's Boosted Nodes and Alchemy at the same instant, every cycle, from September 29 to October 14, 2026. That came to about 50,000 requests per chain and call type from a server in Finland, with a second server in Canada. Latency runs from sending the request to the last byte of the response. Spectrum's Boosted Nodes answered first on 94% of same instant requests. Alchemy was the only other provider in this test.
Spectrum's Boosted Nodes are our caching and routing layer in front of our own nodes, live on Base and not priced separately.
Webhooks and APIs on Base
- Webhooks: Spectrum Webhooks are live on Base. You list the addresses to watch and an HTTPS URL you own, and we POST each transfer in or out of those addresses. Token events carry symbol, name, and decimals, so your handler makes no second RPC call. Deliveries are signed with HMAC SHA256, sent at least once, reorg aware, and batched up to 100 events.
- Unified APIs: balances, token metadata, allowances, portfolios, NFTs, contract reads, gas, and blocks on Base.
Platform and Price
- Security: SOC 2 Type II attested, and we have never had a breach.
- Hardware: our own servers in Tier III data centers in the US and Europe, plus a bare metal deployment in Singapore.
- Scale: over a billion requests a day across the platform at 99.99% uptime.
- Price: Free gives 10M credits a month at 25 requests per second. Standard calls cost 50 credits and debug traces 100, so Free covers about 200,000 standard calls a month. Starter is $1.99 a month for 14M credits at 50 requests per second, and plans run up to Enterprise at $500 for 4.2B credits at 350 requests per second. Pay by card or top up in USDC (pricing, checked November 3, 2026).
To compare providers on Base, see our ranking of the top Base RPC providers for 2027.
FAQ
What is the chain ID for Base?
Base mainnet uses chain ID 8453, which eth_chainId returns as 0x2105. Base Sepolia, the testnet, uses chain ID 84532, or 0x14a34 in hex.
What is the Base RPC URL? Base's public mainnet endpoint is https://mainnet.base.org. It is rate limited, and Base's docs say it is not suitable for production apps. For production, use a provider endpoint such as Spectrum Nodes.
What is the Base Sepolia RPC URL? Base's public Sepolia endpoint is https://sepolia.base.org, with chain ID 84532 and blocks on https://sepolia.basescan.org. Spectrum Nodes also serves Base Sepolia with tracing and archive data on the Free plan.
How do I add Base to MetaMask? Open the menu, select "Networks", scroll to "Additional networks", and click "Add" next to Base. To use your own RPC URL, edit Base and add it under "Default RPC URL". Manual entry: chain ID 8453, symbol ETH, explorer https://basescan.org.
Does Base have a public WebSocket endpoint? No. Base's docs say "Base does not provide a free public WebSocket RPC endpoint." Use your own node or a provider. Spectrum Nodes gives you a WebSocket URL per region for Base mainnet and Base Sepolia.
What is Base's block time? Base mainnet makes a block every 2 seconds. The Denim upgrade, targeted for November 5, 2026 at 18:00 UTC, moves it to 200 ms blocks. Base Sepolia has run 200 ms blocks since October 21, 2026.
Is there a free RPC for Base? Yes. Base's public endpoints are free for testing, and Spectrum Nodes' Free plan covers Base mainnet and Base Sepolia with 10M credits a month at 25 requests per second.
Does Spectrum Nodes support Base? Yes. Spectrum Nodes serves Base mainnet and Base Sepolia with tracing and archive data, plus Spectrum's Boosted Nodes, unified APIs, and webhooks on Base.
References
All checked November 3, 2026.
- Base docs, Connect to Base: https://docs.base.org/base-chain/quickstart/connecting-to-base
- Base docs, Upgrades: https://docs.base.org/upgrades/overview
- Base docs, Denim overview: https://docs.base.org/upgrades/denim/overview
- Base docs, 200ms blocks: https://docs.base.org/upgrades/denim/200ms-blocks
- Base docs, Migrate from Flashblocks: https://docs.base.org/upgrades/denim/migrate-from-flashblocks
- Base docs, Run a Node: https://docs.base.org/specifications/node-operators/run-a-node
- Base docs, Throughput and Limits: https://docs.base.org/specifications/transactions/throughput-and-limits
- Base docs, Flashblocks: https://docs.base.org/specifications/flashblocks
- MetaMask help center, How to add a network: https://support.metamask.io/configure/networks/how-to-add-a-custom-network-rpc/
- viem chains: https://viem.sh/docs/chains/introduction
- Spectrum Nodes supported chains: https://spectrumnodes.com/networks
- Spectrum Nodes pricing: https://spectrumnodes.com/pricing
- Spectrum Nodes docs, Create your first endpoint: https://spectrumnodes.gitbook.io/docs/user-guides/create-your-first-endpoint
- Spectrum Nodes docs, Credit usage: https://spectrumnodes.gitbook.io/docs/user-guides/spectrum-credit-usage
