This repository is an extension for Scaffold-ETH 2 that provides pre-configured setups for deploying and interacting with contracts on the Status Network Sepolia testnet. All necessary Foundry and Hardhat configurations to connect to Status Network Sepolia are provided and explained.
- 🔨 Foundry setup targeting Status Network Sepolia
- ⚡ Hardhat setup targeting Status Network Sepolia
- 📄 Minimal example contract
HelloStatusNetwork.soland basic deployment scripts for both frameworks - 🌐 NextJS setup connecting to Status Network Sepolia instead of SE2 default Anvil local chain
- 📦 Node (>= v20.18.3), Yarn and Git
- 🔨 If using the Foundry workflow (
forge,cast,anvil), Foundry - 💡 Note: Hardhat is provided via project dependencies and run with Yarn; no global install is required. Foundry is a separate native toolchain you install locally.
- 🔑 An EVM wallet to use as the deployer account, testnet ETH unnecessary.
npx create-eth@latest -e status-im/status-network-scaffold-extensionChoose your preferred framework when prompted: Hardhat or Foundry.
yarn generate
# or
yarn account:importRefer to Scaffold-ETH 2 docs for more details.
yarn deploy --network statusSepolia# For Hardhat workflow
yarn hardhat:hardhat-verify --network statusSepolia <YourDeployedContractAddress>
# For Foundry workflow
yarn status:verify --network statusSepoliaStart the NextJS frontend to interact with your deployed contract:
yarn startVisit http://localhost:3000 to see your contract in action. The frontend is pre-configured to connect to Status Network Sepolia.
This extension includes all necessary configurations to connect to Status Network Sepolia testnet. The key settings are:
- 🌐 Network name:
statusSepolia - 📦 Solidity version:
0.8.24 - ⚡ EVM version:
Paris - 🔗 Public RPC endpoint:
https://public.sepolia.rpc.status.network
The above settings are pre-configured for you in:
- 🔨Foundry:
extension/packages/foundry/foundry.toml.args.mjs - ⚡ Hardhat:
extension/packages/hardhat/hardhat.config.ts.args.mjs
These are Scaffold-ETH 2 extension template files that will merge into the corresponding configs when the extension is installed.
The Scaffold config for NextJS is overridden to have the frontend connect to Status Network Sepolia instead of the local Anvil chain, as is the case normally with Scaffold‑ETH 2 projects.
// extension/packages/nextjs/scaffold.config.ts.args.mjs
export const configOverrides = {
// `viem.chains` provides the `statusSepolia` chain object with all the necessary chain information
targetNetworks: ["$$chains.statusSepolia$$"],
rpcOverrides: {
"$$[chains.statusSepolia.id]$$": "https://public.sepolia.rpc.status.network",
},
onlyLocalBurnerWallet: false, // to allow Burner Wallets usage on Status Network Sepolia
};
export const skipLocalChainInTargetNetworks = true; // to enforce connection to Status Network SepoliaThrough the above configuration, the NextJS will automatically connect to Status Network Sepolia when you run your frontend.
HelloStatusNetwork.sol: a minimal example contract used to validate deployments and wiring for both Foundry and Hardhat.
- 🚫 No local chain needed: Deploy directly to the testnet; you do not need to run
yarn chain. - 🌐 Always specify network: Use
--network statusSepoliafor deploy and verify. - ✅ Verification: Use Blockscout, not Etherscan, for contract verification.
- ⛽ Gasless transactions: Status Network is natively gasless; testnet ETH is optional.
- 💧 Faucet: If you still want testnet ETH, see the faucet in our docs.
- 🌐 Network connection issues: Verify the RPC URL
https://public.sepolia.rpc.status.networkis accessible. - 🔑 Account issues: Make sure your account is properly configured through keystore or account import.
For more troubleshooting, consult the references below.
📚 References:
- 📖 Status Network Docs:
https://docs.status.network - 📖 Scaffold-ETH 2 Guide:
https://docs.scaffoldeth.io - 📖 Blockscout Verification:
https://docs.blockscout.com/devs/verification/hardhat-verification-plugin
This project follows the same license as Scaffold‑ETH 2 unless otherwise noted.