Custom connectors
Add custom connectors for Ethers or Wagmi
- Wagmi
- Ethers
If you already have Wagmi integrated into your application or would like more control over Wagmi's configuration, you can integrate Web3Modal on top of it.
import { createConfig, cookieStorage, createStorage, http } from 'wagmi'
import { sepolia } from 'wagmi/chains'
import { walletConnect } from 'wagmi/connectors'
export const projectId = process.env.NEXT_PUBLIC_PROJECT_ID
const metadata = {
//...
}
// Create wagmiConfig
export const config = createConfig({
chains: [sepolia],
transports: {
[sepolia.id]: http()
},
connectors: [
walletConnect({ projectId, metadata, showQrModal: false }), // showQrModal must be false.
// Other connectors...
],
ssr: true,
storage: createStorage({
storage: cookieStorage
})
})
Coming soon...
Was this helpful?