Fantom logo

Fantom Testnet

RPC Endpoints

Chain ID: 0xfa2 · FTM

Other Fantom networks:Mainnet
How to add Fantom to MetaMask or other wallets

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.

StatusRPC EndpointChain IDCurrencyExplorerWallet
Checking
https://fantom-testnet.drpc.org
0xfa2FTMExplorer
Checking
https://rpc.testnet.fantom.network
0xfa2FTMExplorer
Checking
https://fantom-testnet.gateway.tatum.io
0xfa2FTMExplorer

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); // 4002n

Fantom 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.