Files
lab6/app/config/wagmi.ts
2026-03-26 16:17:30 +01:00

26 lines
602 B
TypeScript

import { createConfig, http } from "wagmi";
import { metaMask } from "wagmi/connectors";
import { type Chain } from "viem";
export const nextChain = {
id: 1337,
name: "Next",
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
rpcUrls: {
default: { http: ["https://eth.code-camp.org"] }
},
blockExplorers: {
default: { name: "Otterscan", url: "https://etherscan.code-camp.org" }
},
testnet: true
} as const satisfies Chain;
export const config = createConfig({
chains: [nextChain],
transports: {
[nextChain.id]: http()
},
connectors: [metaMask()]
});