-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
31 lines (24 loc) · 825 Bytes
/
config.js
File metadata and controls
31 lines (24 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { defaultWagmiConfig } from '@web3modal/wagmi/react/config';
import { cookieStorage, createStorage } from 'wagmi';
import { mainnet, sepolia,polygonAmoy} from 'wagmi/chains';
import {http,createConfig} from '@wagmi/core';
import { injected } from '@wagmi/connectors';
// Define the projectId directly
export const projectId = 'BTeFNsqvZQ3n6WacRdUT1P4U-KSXkaOA';
export const metadata = {
name: 'AppKit',
description: 'AppKit Example',
url: 'https://web3modal.com', // origin must match your domain & subdomain
icons: ['https://avatars.githubusercontent.com/u/37784886'],
};
// Create wagmiConfig
const chains = [mainnet, sepolia,polygonAmoy];
export const config = defaultWagmiConfig({
chains,
projectId,
metadata,
ssr: true,
storage: createStorage({
storage: cookieStorage,
}),
});