Recurring card billing is here. Subscribe once and you're covered every month

Get started
Spectrum Nodes

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

Featured image for: Base Chain ID and RPC Endpoint: How to Connect to Base
Share

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.

SettingBase mainnetBase Sepolia (testnet)
Chain ID (decimal)845384532
Chain ID (hex, as eth_chainId returns it)0x21050x14a34
Currency symbolETHETH
Native decimals1818
Public HTTPS RPChttps://mainnet.base.orghttps://sepolia.base.org
Transaction submission onlyhttps://mainnet-sequencer.base.orghttps://sepolia-sequencer.base.org
Public WebSocketNoneNone
Block explorerhttps://basescan.orghttps://sepolia.basescan.org
Block time2 seconds, then 200 ms once Denim activates (targeted for November 5, 2026, 18:00 UTC)200 ms since October 21, 2026
FaucetNoneSpectrum 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.timestamp is 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 timestampMs or blockTimestampMs fields. The seconds based timestamp field 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 newHeads over 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.

  1. 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.
  2. Open Nodes, click Create Endpoint, and pick Base, then Mainnet or the Sepolia testnet.
  3. Choose the node type. Pruned serves current and recent state. Archive serves balances and contract state at any past block.
  4. Copy the HTTPS and WebSocket URLs for the region closest to your servers.
  5. Save them as BASE_RPC_URL and BASE_WSS_URL in 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.

  1. In the MetaMask extension, open the menu at the top right and select "Networks".
  2. Scroll to "Additional networks" and click "Add" next to Base.
  3. 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:

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_getLogs for a single block with HTTP 429, "request limit reached", and refused debug_traceBlockByNumber and trace_block with "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 getBase mainnetBase Sepolia
HTTPS and WebSocket URLs per regionYesYes
Debug and trace methodsYesYes
Archive dataYesYes
On the Free planYesYes

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 NodesAlchemy
Median, Finland server126 ms409 ms
p95 (slowest 5%), Finland server399 ms2,120 ms
Median, Canada server285 ms620 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.

Start Now: https://dashboard.spectrumnodes.com/auth/signup