@flydaxwagmi/connectors
v0.1.8
Published
A collection of connectors for flydaxwagmi
Downloads
5
Maintainers
Readme
@wagmi/connectors
Collection of connectors for wagmi.
Installation
Install the @wagmi/connectors
package.
npm i @wagmi/connectors
Usage
Configure your wagmi client with connectors!
import { configureChains, createClient } from 'wagmi'
import { InjectedConnector } from '@wagmi/connectors/injected'
import { CoinbaseWalletConnector } from '@wagmi/connectors/coinbaseWallet'
import { WalletConnectConnector } from '@wagmi/connectors/walletConnect'
const { chains, provider } = configureChains(...)
const client = createClient({
connectors: [
new CoinbaseWalletConnector({
chains,
options: {
appName: 'wagmi',
},
}),
new WalletConnectConnector({
chains,
options: {
qrcode: true,
},
}),
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
WalletConnectConnector
Contributing
Want to add another chain to the list? Make sure you read the contributing guide first.