Skip to content

How Does Chainlist Add a Network Behind the Scenes? Wallet Flow

Chainlist asks your wallet to connect, then proposes a network through wallet_addEthereumChain. That request carries the network’s ID, name, fee currency, node URL, and explorer URL. Your wallet checks the details and asks for your approval before saving the network in its own settings. The wallet controls what gets added.

How Chainlist’s Wallet Request Works

The wallet request moves details from a network entry into your wallet’s network settings. The EVM directory at chainlist.cc supplies those details for compatible wallets.

  • Chain ID: the network’s numeric identifier, sent as a hexadecimal string.
  • RPC endpoint: the node URL your wallet uses to ask the network for data.
  • Native currency: the token used to pay that network’s transaction fees.
  • Block explorer: a URL for looking up transactions and addresses.

The entry also supplies a network name. First, eth_requestAccounts asks you to let the directory connect to your wallet account. The directory then sends the network details through wallet_addEthereumChain, the request defined by EIP-3085. Your wallet handles the checks, approval, and storage.

Before saving, the wallet calls eth_chainId on the supplied RPC endpoint. That call asks the node which chain it serves. The answer must match the Chain ID in the add request. If the URL points to a node on another chain, the wallet rejects the request even when the name looks right. If the node is down or does not answer, the wallet cannot verify its ID, so the add can fail before a save prompt appears.

Take Base as a concrete case. Its Chain ID is 8453, sent in the request as 0x2105. The entry supplies ETH as the native currency, along with an RPC URL and block explorer URL. Your wallet asks that RPC endpoint for eth_chainId and expects 0x2105. A different reply means that endpoint does not match the requested network, so the wallet rejects the add.

Approval saves the network configuration in your wallet, including the RPC URL it will use for later queries. The directory does not store that wallet setting or receive your private keys. Connecting lets the directory see only the account addresses you authorize; adding a network does not sign a transaction.

Adding and switching are separate wallet actions. Your wallet may offer to switch after the add, or a site may send wallet_switchEthereumChain and ask for another approval. Read the Chain ID and RPC URL in each prompt, then approve the network you intend to use.