Skip to content

Instantly share code, notes, and snippets.

@chair28980
Created July 5, 2025 16:58
Show Gist options
  • Save chair28980/c22dc265e0559d1fe4c82913132db340 to your computer and use it in GitHub Desktop.
Save chair28980/c22dc265e0559d1fe4c82913132db340 to your computer and use it in GitHub Desktop.
se2 works with status network sepolia
import * as chains from "viem/chains";
export type ScaffoldConfig = {
targetNetworks: readonly chains.Chain[];
pollingInterval: number;
alchemyApiKey: string;
rpcOverrides?: Record<number, string>;
walletConnectProjectId: string;
onlyLocalBurnerWallet: boolean;
};
export const DEFAULT_ALCHEMY_API_KEY = "oKxs-03sij-U_N0iOlrSsZFr29-IqbuF";
// Define custom Status Network Sepolia chain
const statusNetworkSepolia = {
id: 1660990954 as const,
name: "Status Network Sepolia",
nativeCurrency: {
decimals: 18,
name: "Ether",
symbol: "ETH",
},
rpcUrls: {
default: {
http: ["https://public.sepolia.rpc.status.network"],
},
public: {
http: ["https://public.sepolia.rpc.status.network"],
},
},
blockExplorers: {
default: {
name: "Status Sepolia Scan",
url: "https://sepoliascan.status.network",
},
},
testnet: true,
} as const satisfies chains.Chain;
const scaffoldConfig = {
// The networks on which your DApp is live
targetNetworks: [statusNetworkSepolia],
// The interval at which your front-end polls the RPC servers for new data
// it has no effect if you only target the local network (default is 4000)
pollingInterval: 30000,
// This is ours Alchemy's default API key.
// You can get your own at https://dashboard.alchemyapi.io
// It's recommended to store it in an env variable:
// .env.local for local testing, and in the Vercel/system env config for live apps.
alchemyApiKey: process.env.NEXT_PUBLIC_ALCHEMY_API_KEY || DEFAULT_ALCHEMY_API_KEY,
// If you want to use a different RPC for a specific network, you can add it here.
// The key is the chain ID, and the value is the HTTP RPC URL
rpcOverrides: {
[statusNetworkSepolia.id]: "https://public.sepolia.rpc.status.network",
},
// This is ours WalletConnect's default project ID.
// You can get your own at https://cloud.walletconnect.com
// It's recommended to store it in an env variable:
// .env.local for local testing, and in the Vercel/system env config for live apps.
walletConnectProjectId: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID || "3a8170812b534d0ff9d794f19a901d64",
// Only show the Burner Wallet when running on hardhat network
onlyLocalBurnerWallet: true,
} as const satisfies ScaffoldConfig;
export default scaffoldConfig;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment