UNPKG

create-near-app

Version:

Quickly scaffold your dApp on NEAR Blockchain

29 lines (25 loc) 941 B
import { WagmiAdapter } from "@reown/appkit-adapter-wagmi"; import { createAppKit } from "@reown/appkit/react"; import { nearTestnet } from "@reown/appkit/networks"; import { reconnect } from "@wagmi/core"; // Get a project ID at https://cloud.reown.com const projectId = "30147604c5f01d0bc4482ab0665b5697"; export const wagmiAdapter = new WagmiAdapter({ projectId, networks: [nearTestnet], }); export const web3Modal = createAppKit({ adapters: [wagmiAdapter], projectId, networks: [nearTestnet], enableWalletConnect: true, features: { analytics: true, swaps: false, onramp: false, email: false, // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA. socials: false, // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA. }, coinbasePreference: "eoaOnly", // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA. allWallets: "SHOW", });