RPC method

eth_chainId on Metal L2

Supported on SwiftNodes

Everything below was measured on 2026-12-06 by calling eth_chainId on Metal L2 through the same endpoint customers use, and is re-measured weekly.

What eth_chainId does

Returns the chain ID (EIP-155) as a hex string. Wallets and libraries check it before signing, and the signature commits to it, so a transaction signed for one chain cannot be replayed on another.

Metal L2 chain ID, as measured

net_version returns the same number as decimal text. Older tools read net_version; use eth_chainId, which is the value signatures commit to.

We sent Metal L2 a legacy transaction signed without a chain ID (pre-EIP-155). Its nodes did not reject it for that: the answer was about the empty balance ("insufficient funds for gas * price + value: have 0 want 42010605001"). Unprotected transactions are accepted at the RPC, so replay protection depends on your wallet signing with the chain ID.

eth_chainId0x6d6 (1,750)
net_version1750

Example request

curl -s https://rpc.swiftnodes.io/rpc/metal-l2?key=YOUR_API_KEY \
  -X POST -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'
// Check you are on Metal L2 before signing
import { createPublicClient, http } from "viem";

const client = createPublicClient({
  transport: http("https://rpc.swiftnodes.io/rpc/metal-l2?key=YOUR_API_KEY"),
});

const id = await client.getChainId(); // 1750
if (id !== 1750) throw new Error(`wrong chain: ${id}`);

// Add Metal L2 to a browser wallet
await window.ethereum.request({
  method: "wallet_addEthereumChain",
  params: [{
    chainId: "0x6d6",
    chainName: "Metal L2",
    nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18 },
    rpcUrls: ["https://rpc.swiftnodes.io/rpc/metal-l2?key=YOUR_API_KEY"],
  }],
});

Other methods on Metal L2

eth_chainId on other chains

Frequently asked questions

Does Metal L2 support eth_chainId?

Yes. eth_chainId answered on the SwiftNodes Metal L2 endpoint when our weekly probe called it through the customer path (2026-12-06).

What is the Metal L2 chain ID?

1750 in decimal, 0x6d6 in hex, as returned by eth_chainId on 2026-12-06.

How do I add Metal L2 to MetaMask?

Call wallet_addEthereumChain with chainId 0x6d6, the native currency ETH with 18 decimals, and your RPC URL; the example on this page has the full object.

Metal L2 endpoints, live block height and WebSocket status are on the Metal L2 RPC page.

One key covers every chain we serve, and SwiftNodes has a free tier.