Logo
RPC Assistant

Sepolia Testnet RPC: Chain Settings, Endpoints, and Debugging

Summary

Sepolia is Ethereum's recommended testnet for application development. This page covers the chain settings you need to connect, how to choose an RPC endpoint for testing versus production, and common failure modes when debugging testnet transactions.

Quick reference: Sepolia chain settings

Before you connect to Sepolia, you need the canonical network parameters. These are the same values you will enter into a wallet, a dApp config, or a deployment script.

SettingValue
Network nameSepolia
Chain ID11155111 (0xaa36a7)
Currency symbolSepoliaETH (ETH)
Block explorerhttps://sepolia.etherscan.io
ConsensusProof of Stake (PoS)
Block time~12 seconds

Sepolia is Ethereum's recommended testnet for application development. It replaced Goerli as the default testnet for most tooling, and it is designed to mirror mainnet conditions closely. Because it is a PoS network, you can test staking-related flows and EIP-1559 fee mechanics without risking real funds.

Choosing an RPC endpoint for Sepolia

Your choice of Sepolia RPC endpoint depends on what you are building and how much traffic you expect. For a quick local test, a public endpoint is fine. For a CI pipeline, a team staging environment, or a public testnet dApp, you need something more reliable.

Here is a quick decision guide:

  • Prototyping or one-off calls: Use a public endpoint. It is free and requires no signup, but it may be rate-limited or occasionally unavailable.
  • Automated tests or CI: Use a dedicated endpoint with a higher rate limit. A shared public endpoint can throttle you when your test suite runs many requests in parallel.
  • Public testnet dApp or faucet: Use a managed RPC provider that offers a stable endpoint and WebSocket support. You do not want your demo to fail because a public endpoint is down.
  • Debugging with trace or archive data: Check whether the provider supports trace_* methods or archive state. Not all Sepolia endpoints do.

For production-grade testnet infrastructure, consider a managed RPC service like OnFinality. OnFinality provides dedicated endpoints for Sepolia and other testnets, with configurable rate limits and access to archive data. You can compare plans on the RPC pricing page.

Public Sepolia RPC endpoints

Several public endpoints are available for Sepolia. They are useful for quick experiments, but they come with tradeoffs in reliability and privacy.

ProviderEndpointNotes
PublicNodehttps://ethereum-sepolia-rpc.publicnode.comFree, no signup, WebSocket available
Tenderlyhttps://sepolia.gateway.tenderly.coFree tier, requires account for higher limits
1RPChttps://public.1rpc.io/sepoliaPrivacy-focused, free
Ankrhttps://rpc.ankr.com/eth_sepoliaFree tier, rate-limited
OnFinalityhttps://ethereum-sepolia.rpc.onfinality.ioManaged, requires API key, higher limits

Public endpoints are often rate-limited and may not guarantee uptime. If you are building a serious testnet application, you should not rely on them as your primary endpoint.

Adding Sepolia to MetaMask

If you are testing a dApp in a browser, you will likely add Sepolia to MetaMask. The process is straightforward:

  1. Open MetaMask and click the network selector at the top.
  2. Click "Add network" and then "Add a network manually".
  3. Fill in the following details:
    • Network name: Sepolia
    • New RPC URL: https://ethereum-sepolia-rpc.publicnode.com (or your preferred endpoint)
    • Chain ID: 11155111
    • Currency symbol: SepoliaETH
    • Block explorer URL: https://sepolia.etherscan.io
  4. Click "Save".

You can also use a wallet connection library like RainbowKit or Wagmi to add the network programmatically. Here is an example using viem:

import { defineChain } from 'viem';

export const sepolia = defineChain({
  id: 11155111,
  name: 'Sepolia',
  nativeCurrency: { name: 'Sepolia Ether', symbol: 'SepoliaETH', decimals: 18 },
  rpcUrls: {
    default: {
      http: ['https://ethereum-sepolia-rpc.publicnode.com'],
    },
    public: {
      http: ['https://ethereum-sepolia-rpc.publicnode.com'],
    },
  },
  blockExplorers: {
    default: { name: 'Etherscan', url: 'https://sepolia.etherscan.io' },
  },
});

Getting Sepolia ETH from a faucet

To pay for gas on Sepolia, you need test ETH. Several faucets are available, but they often have daily limits and may require authentication.

  • Alchemy Sepolia Faucet: Requires an Alchemy account, gives 0.5 ETH per day.
  • Infura Faucet: Requires an Infura account, gives 0.1 ETH per day.
  • PublicNode Faucet: No signup, but limited.
  • LearnWeb3 Faucet: No signup, but limited.

If you need more test ETH for a large test suite, consider running your own faucet or using a provider that offers higher faucet limits. Some managed RPC providers also offer faucet services as part of their testnet infrastructure.

Making your first JSON-RPC call

Once you have an endpoint, you can verify connectivity with a simple curl request. Here is an example that fetches the latest block number:

curl https://ethereum-sepolia-rpc.publicnode.com \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

You should receive a response like:

{"jsonrpc":"2.0","result":"0xae9f3a","id":1}

The result is a hex-encoded block number. You can convert it to decimal to see the current height.

Debugging common Sepolia RPC issues

Even on a testnet, things can go wrong. Here are common failure modes and how to diagnose them.

SymptomLikely causeFix
eth_blockNumber returns an errorEndpoint is down or rate-limitedTry another endpoint or check your API key
Transaction stuck in pendingNonce too low or gas price too lowUse eth_getTransactionByHash to check, resubmit with higher gas
eth_call returns execution revertedContract logic errorUse a tracer or debug_traceTransaction if supported
WebSocket disconnects frequentlyEndpoint does not support WS or has idle timeoutUse a provider that supports WS, or implement reconnection logic
eth_getLogs returns too many resultsBlock range too largeNarrow the range or use a provider with archive data

If you are using a public endpoint and see rate limiting errors, consider upgrading to a managed provider. OnFinality offers dedicated Sepolia endpoints with configurable rate limits, which can help you avoid these issues. See our supported networks for more details.

Sepolia vs. other testnets

Sepolia is not the only testnet, but it is the recommended one for most application development. Here is a quick comparison:

TestnetChain IDConsensusUse case
Sepolia11155111PoSGeneral dApp testing, recommended by Ethereum
Holesky17000PoSStaking and protocol-level testing
Hoodi560048PoSNewer testnet for staking, replacing Holesky
Base Sepolia84532PoS (OP Stack)Testing on Base L2

Sepolia is the safest choice for most developers because it has broad tooling support and a stable faucet ecosystem. If you are testing staking or validator behavior, Holesky or Hoodi may be more appropriate.

Key Takeaways

  • Sepolia is Ethereum's recommended testnet for application development, with chain ID 11155111.
  • Public RPC endpoints are fine for prototyping, but for reliable testnet infrastructure, consider a managed provider like OnFinality.
  • Always verify your endpoint supports the methods you need, especially WebSocket and trace/archive methods.
  • Use a faucet to get test ETH, but be aware of daily limits.
  • Debug common issues by checking nonce, gas, and block range parameters.

Frequently Asked Questions

What is the Sepolia testnet RPC URL?

A common public endpoint is https://ethereum-sepolia-rpc.publicnode.com. For a managed endpoint with higher limits, you can use OnFinality's Sepolia RPC, which requires an API key.

What is the Sepolia chain ID?

The Sepolia chain ID is 11155111 (hex 0xaa36a7).

How do I get Sepolia test ETH?

You can get Sepolia ETH from faucets like Alchemy, Infura, or PublicNode. Each has daily limits, so you may need to request multiple times or use multiple faucets.

Is Sepolia a proof-of-stake testnet?

Yes, Sepolia transitioned to proof-of-stake in 2022, mirroring Ethereum mainnet's consensus mechanism.

Can I use Sepolia for production?

No, Sepolia is a testnet and should not be used for production applications. It is meant for testing and development only.

Does OnFinality support Sepolia?

Yes, OnFinality provides Sepolia RPC endpoints as part of its supported networks. You can find more details on the Ethereum Sepolia network page.

RPC Knowledge Base

Related RPC details

Never Worry about Infrastructure Again

OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.

Get Started