Initial commit
This commit is contained in:
25
app/config/wagmi.ts
Normal file
25
app/config/wagmi.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
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()]
|
||||
});
|
||||
Reference in New Issue
Block a user