18 lines
465 B
TypeScript
18 lines
465 B
TypeScript
import { http, createConfig } from "wagmi";
|
|
import { base, baseSepolia } from "wagmi/chains";
|
|
import { injected, walletConnect } from "wagmi/connectors";
|
|
|
|
const projectId = process.env.NEXT_PUBLIC_WC_PROJECT_ID ?? "";
|
|
|
|
export const wagmiConfig = createConfig({
|
|
chains: [base, baseSepolia],
|
|
connectors: [
|
|
injected(),
|
|
...(projectId ? [walletConnect({ projectId })] : []),
|
|
],
|
|
transports: {
|
|
[base.id]: http(),
|
|
[baseSepolia.id]: http(),
|
|
},
|
|
});
|