Fraxtal is Frax Finance's EVM-equivalent Layer 2 built on the OP Stack, with frxETH (Frax's liquid-staked ETH derivative) as the native gas token. Mainnet chain ID 252, ~2s block times, EIP-4844 blob DA, and Frax-aligned canonical assets (FRAX/frxUSD stablecoin, frxETH/sfrxETH for staking, FXS for governance). Designed as a high-throughput DeFi hub for the Frax ecosystem with the Fraxtal Lockdrop / FXTL Points incentive system.
- 01Frax-aligned DeFi (FRAX / frxUSD / frxETH / sfrxETH primitives)
- 02OP-Stack EVM L2 with non-ETH gas (frxETH)
- 03high-throughput DeFi at cents-level fees with EIP-4844
- 04apps participating in Fraxtal incentive programs (FXTL Points)
- pnpm add viem wagmi
| Variable | Scope | Description |
|---|---|---|
| NEXT_PUBLIC_FRAXTAL_RPC_URL | Client | Fraxtal RPC URL (mainnet: https://rpc.frax.com). |
| NEXT_PUBLIC_FRAXTAL_CHAIN_ID | Client | Chain ID — 252 for Fraxtal mainnet, 2522 for Fraxtal testnet (Holesky). |
Use viem's built-in `fraxtal` / `fraxtalTestnet` chains (`import { fraxtal } from 'viem/chains'`) — chain ID 252, gas token frxETH (18 decimals), RPC `https://rpc.frax.com`. Because Fraxtal is OP-Stack EVM-equivalent, Foundry/Hardhat workflows are unchanged: `forge create --rpc-url $FRAXTAL_RPC --private-key $PK src/MyContract.sol:MyContract`. Wallets must hold frxETH (not ETH) to pay gas — bridge ETH->frxETH via the canonical Fraxtal Bridge (`bridge.frax.com`) which auto-mints frxETH on L2 from L1 ETH at the staking rate. FRAX/frxUSD is Frax's stablecoin, sfrxETH is the auto-compounding staked variant of frxETH. Indexers The Graph, Goldsky, and Envio support chain 252.
- ⚑Gas token is frxETH, NOT ETH. frxETH is a non-rebasing ETH derivative whose value drifts upward vs ETH as staking rewards accrue (the rebasing yield is captured by sfrxETH instead). Wallets/relayers/paymasters that hardcode ETH as the fee currency will fail; UX must onboard users to frxETH, typically auto-handled by the canonical bridge.
- ⚑Sequencer is centralized and operated by Frax Finance — force-inclusion via L1 exists but is the slow path. Plan for liveness incidents on a single operator.
- ⚑Withdrawals to L1 use the standard OP-Stack 7-day challenge window for ETH/frxETH and ERC-20s. For fast exits, route through Across/Stargate/Orbiter at the cost of bridge fees rather than waiting on the canonical bridge.
- ⚑Fraxtal has run multi-phase incentive programs (Lockdrop, FXTL Points, Flox); on-chain behavior of users and contracts feeds into eligibility. Read the current rules before launching anything that resembles wash-trading or sybil farming.
- ⚑frxETH and sfrxETH look similar but have different invariants: frxETH is 1:1 with ETH at the bridge but does NOT accrue yield on its own; sfrxETH is the ERC-4626 vault that holds frxETH and accrues yield. Lending/AMM logic must distinguish them — never treat sfrxETH balance as 1:1 frxETH.
- ⚑Some standard contracts (Multicall3, Permit2, ENS resolvers) live at different addresses or behave differently than mainnet. Always look up canonical addresses in `docs.frax.com` rather than reusing mainnet constants.