Fantom Testnet
RPC EndpointsChain ID: 0xfa2 · FTM
Other Fantom networks:Mainnet
Fantom Testnet uses FTM as its native currency. Chain ID: 4002 (0xfa2). Below are 3 public RPC endpoints you can use to connect wallets, dApps, and developer tools to Fantom Testnet.
Connect to Fantom Testnet with ethers.js
import { ethers } from "ethers";
const provider = new ethers.JsonRpcProvider("https://fantom-testnet.drpc.org");
const network = await provider.getNetwork();
console.log(network.chainId); // 4002nFantom Testnet — common questions
What is the RPC URL for Fantom Testnet?
There are 3 public RPC endpoints for Fantom Testnet, including https://fantom-testnet.drpc.org. See the full list in the table above.
What is the Chain ID for Fantom Testnet?
The Chain ID for Fantom Testnet is 4002 (0xfa2 in hexadecimal).
What is the native currency of Fantom Testnet?
The native currency of Fantom Testnet is FTM.
How do I add Fantom Testnet to MetaMask?
Use the "Add to Wallet" button on this page to add Fantom Testnet to MetaMask automatically, or follow our step-by-step guide for Fantom.