Skip to content

getConnectors

Action for getting configured connectors.

Import

ts
import { getConnectors } from '@wagmi/core'

Usage

ts
import { getConnectors } from '@wagmi/core'
import { config } from './config'

const connectors = getConnectors(config)
ts
import { http, createConfig } from '@wagmi/core'
import { mainnet, sepolia } from '@wagmi/core/chains'

export const config = createConfig({
  chains: [mainnet, sepolia],
  transports: {
    [mainnet.id]: http(),
    [sepolia.id]: http(),
  },
})

Return Type

ts
import { type GetConnectorsReturnType } from '@wagmi/core'

readonly Connector[]

Connectors from config.connectors.

Released under the MIT License.