@plg-wagmi/connectors
v2.6.4
Published
A collection of connectors for wagmi
Downloads
3
Maintainers
Readme
@wagmi/connectors
Collection of connectors for wagmi.
Installation
Install the @wagmi/connectors
package.
npm i @wagmi/connectors
Usage
Configure your wagmi config with connectors!
import { configureChains, createConfig } from 'wagmi'
import { InjectedConnector } from '@wagmi/connectors/injected'
const { chains, provider } = configureChains(...)
const config = createConfig({
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. 😊
Connectors
CoinbaseWalletConnector
InjectedConnector
LedgerConnector
MetaMaskConnector
MockConnector
SafeConnector
WalletConnectConnector
Contributing
Want to add another chain to the list? Make sure you read the contributing guide first.