Collection of connectors for wagmi.
Install the @wagmi/connectors
package.
npm i @wagmi/connectors
Configure your wagmi client with connectors!
import { configureChains, createClient } from 'wagmi'
import { InjectedConnector } from '@wagmi/connectors/injected'
const { chains, provider } = configureChains(...)
const client = createClient({
connectors: [
new InjectedConnector({ chains }),
],
provider,
})
If your bundler supports tree-shaking (most likely), only the used connectors will be included in the bundle, so you don't have to worry about bundle size. 😊
CoinbaseWalletConnector
InjectedConnector
LedgerConnector
MetaMaskConnector
MockConnector
SafeConnector
WalletConnectConnector
Want to add another chain to the list? Make sure you read the contributing guide first.