Skip to main content
Testnetly

All posts

RPC endpoints and chain IDs explained: check a network before you add it

What an RPC endpoint and a chain ID are, how to check a testnet's official network details before adding it to your wallet, and what a wrong or malicious RPC can do (mislead, track, stall) and cannot do (sign for you).

By Testnetly Editorial8 min read

Branded Testnetly cover on a navy background with the title "RPC endpoints and chain IDs explained: check a network before you add it" and the Testnetly mark

Every time you add a testnet to a wallet, you fill in two things that are easy to skip over: an RPC URL and a chain ID. One decides which server your wallet talks to. The other decides which chain your signatures are valid for. This post explains both, shows how to check a network's official details before you add it, and sets out what a wrong or malicious RPC can and cannot do. It is about EVM networks, and it goes deeper than the network step in our separate wallet guide.

What an RPC endpoint is

A wallet does not hold the blockchain. It asks a node. Ethereum.org explains: "In order for a software application to interact with the Ethereum blockchain - either by reading blockchain data or sending transactions to the network - it must connect to an Ethereum node." (ethereum.org: JSON-RPC).

MetaMask's help page (our example wallet, not a recommendation) defines the term: "The initialism RPC stands for remote procedure call, a set of protocols that allow a client (such as MetaMask) to interact with a blockchain." (MetaMask: add a network).

So an RPC endpoint is the web address of a node, or of a service that runs nodes, which answers your wallet's questions and passes on your signed transactions. Your balance, your transaction history and the "confirmed" tick all come from that server.

What a chain ID is

A chain ID is a number that identifies one EVM chain. It was introduced by EIP-155, titled "Simple replay attack protection", created in October 2016 (EIP-155). The idea is that the chain ID becomes part of what you sign. The proposal's rationale: "This would provide a way to send transactions that work on Ethereum without working on ETC or the Morden testnet." It gives Ethereum mainnet the value 1 and encourages "all future testnets, consortium chains and alt-etherea" to adopt a unique value.

In plain words: a transaction signed for chain 84532 is not valid on chain 1. A later proposal, EIP-3085, puts it this way: "in the universe of Ethereum chains, the EIP-155 chain ID is effectively the chain GUID" (EIP-3085). Its page shows the status Stagnant: a proposal, not a finished standard.

Some official examples for testnets:

Wallets and tools sometimes show the number in hexadecimal. EIP-3085 passes the chain ID "as a hexadecimal string", so 84532 can appear as 0x14a34. It is the same number.

What a network entry contains

MetaMask's verification page lists the fields a website provides when it asks to add a network (MetaMask: verify custom network information):

  • Network name.
  • Network URL, which is the RPC endpoint.
  • Chain ID: "The chain ID that MetaMask will use to sign transactions for the network."
  • Currency symbol.
  • Block explorer URL, which is optional.

Only two of these do real work. The RPC URL decides who answers your wallet. The chain ID decides where your signature counts. The name and the symbol are labels.

Two ways a network gets added

You type it in. You copy the five fields from somewhere and save them.

A website asks your wallet to add it. EIP-3085 defines the method, which is "used to suggest to the wallet that a new chain be added". A prompt appears, and you approve or reject. The proposal says a chain "should never be added without the explicit consent of the user".

MetaMask is direct about the limits of that prompt: "There is no guarantee that this information is correct. Therefore, you should trust the information to the same degree that you trust the website." And: "MetaMask does not verify custom networks, and even if MetaMask's validation checks out, the network could be malicious or misrepresented by the website that requested it."

How to check a network's official details

  1. Find the project's own network page. Go to the docs from the project's official website, not from a search advert or a chat link. Our post on official channels and impersonators covers how to find the real site. The three pages linked above are examples: each lists chain IDs, RPC endpoints and block explorers.
  2. Compare the chain ID first. It is the one field that cannot be approximately right.
  3. Read the RPC URL's domain. It should belong to the project or to a provider the project's docs name. It should start with https. EIP-3085 says wallets must reject URLs that use plain http.
  4. Open the explorer from the docs. Search a recent block or your own address. If the explorer in the wallet prompt differs from the one in the docs, stop.
  5. Check whether the wallet already knows the network. MetaMask advises: "Check whether the network is already supported before adding it manually." It adds that you can search "by name or by chain ID". A built-in entry spares you the typing.
  6. If in doubt, reject. MetaMask's closing advice is to "reject the request to add the network, do more research, and perhaps try again later".

What a wrong or malicious RPC can do

EIP-3085 warns wallet makers that the endpoints a website supplies "cannot be assumed to be honest, correct, or even pointing to the same chain". Here is what that means for you. Where a point carries no quotation, it is our explanation of what follows.

  • It sees you. EIP-3085 says wallets should "Inform users that their on-chain activity and IP address will be exposed to RPC endpoints." Ethereum.org makes the same point about running your own node: you then do not "leak your addresses and balances to intermediaries" (ethereum.org: nodes and clients).
  • It can point you at the wrong chain. "A malicious or faulty endpoint could return arbitrary chain IDs, and potentially cause the user to sign transactions for unintended chains." The defence belongs to the wallet, which should "Only use the submitted chain ID to sign transactions, never a chain ID received from an RPC endpoint."
  • It can show you things that are not true. Your wallet displays what the server reports. A dishonest server can report a balance you do not have, or a transaction as confirmed when it is not.
  • It can sit on your transaction. A server can accept a signed transaction and not pass it on.
  • It can be slow or limited. This is the innocent case. Optimism's docs say their public RPC URLs "are rate limited". Base's docs call theirs "free, rate limited, and best effort". When a testnet task fails during a busy campaign, an overloaded public RPC can be the cause.

What it cannot do

  • It cannot sign for you. Signing happens in your wallet. Ethereum.org's description of a transaction starts there: "A user creates and signs a transaction with their private key." (ethereum.org: proof-of-stake).
  • It does not have your keys. Ethereum.org says of node providers: "It's important to note that node services do not and should not store your private keys or information." (ethereum.org: nodes as a service). An RPC never needs your seed phrase. Any "network setup" that asks for one is a scam.
  • It cannot alter what you signed. Our explanation: the signature covers the transaction's contents, including the chain ID, so a changed transaction no longer matches the signature.

By itself an RPC cannot take your funds, but it can mislead you into signing something. That is why the cautions in airdrop scams and token approvals still apply on a network you added yourself.

Beyond EVM

This post is about EVM chains. Other families identify networks differently. Cosmos chains use text chain IDs, as in our post on Cosmos testnets, and Solana has named clusters, as in Solana devnet and testnet. The habit is the same everywhere: take network details from the project's own docs.

Checklist

  1. Take the five network fields from the project's official docs.
  2. Match the chain ID exactly.
  3. Read the RPC domain. It must be https and belong to the project or a provider its docs name.
  4. Open the explorer from the docs, not from the prompt.
  5. Reject any add-network prompt you did not expect.
  6. Verify balances and transactions on the explorer, not only in the wallet. See the block explorer guide.
  7. Never give a seed phrase or private key to anything that calls itself a network setup.

Sources

Last checked: 28 November 2026.

Not financial advice. Testnetly does not guarantee rewards.

About the author

Testnetly Editorial

Guides and explainers from the Testnetly team, checked against official project sources before publication.