import { defineChain } from "@reown/appkit/networks";
import { WagmiAdapter } from "@reown/appkit-adapter-wagmi";
import { createAppKit } from "@reown/appkit/react";
const projectId = process.env.NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID;
const arcTestnet = defineChain({
id: 5042002,
caipNetworkId: "eip155:5042002",
chainNamespace: "eip155",
name: "Arc Testnet",
nativeCurrency: { decimals: 18, name: "USDC", symbol: "USDC" },
rpcUrls: {
default: {
http: ["https://rpc.testnet.arc.network"],
webSocket: ["wss://rpc.testnet.arc.network"],
},
},
blockExplorers: {
default: { name: "ArcScan", url: "https://testnet.arcscan.app" },
},
testnet: true,
});
const wagmiAdapter = new WagmiAdapter({
networks: [arcTestnet],
projectId,
});
createAppKit({
adapters: [wagmiAdapter],
networks: [arcTestnet],
projectId,
metadata: {
name: "Your App Name",
description: "Your App Description",
url: "https://yourdomain.com",
icons: ["https://yourdomain.com/icon.png"],
},
});