-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwagmi.ts
More file actions
23 lines (21 loc) · 935 Bytes
/
wagmi.ts
File metadata and controls
23 lines (21 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// wagmi.ts
//
// This configuration sets up wagmi for the Base Sepolia testnet and
// integrates the Farcaster miniapp connector. The farcaster connector
// allows the BaseTC mini app to interact with a Farcaster frame when
// running inside the Farcaster environment. The HTTP transport is
// configured for general RPC access. See wagmi documentation for
// additional configuration options.
import { http, createConfig } from "wagmi";
import { base } from "wagmi/chains"; // Ganti ke `base`
import farcaster from "@farcaster/miniapp-wagmi-connector";
// Create the wagmi configuration with the Base Sepolia chain and the
// Farcaster connector. Additional connectors (e.g. MetaMask) can be
// added here if you plan to support other wallets in the future.
export const config = createConfig({
chains: [base], // Ganti ke `base`
connectors: [farcaster()],
transports: {
[base.id]: http(), // Ganti ke `base.id`
},
});