Skip to content

createConnector

Creates new CreateConnectorFn.

Import

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

Usage

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

export type InjectedParameters = {}

export function injected(parameters: InjectedParameters = {}) {
  return createConnector((config) => ({
    // ...
  }))
}

Parameters

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

Read Creating Connectors for more info on the CreateConnectorFn type.

Released under the MIT License.