createConnector
Creates new CreateConnectorFn
.
Import
ts
import { createConnector } from '@wagmi/core'
import { createConnector } from '@wagmi/core'
Usage
ts
import { createConnector } from '@wagmi/core'
export type InjectedParameters = {}
export function injected(parameters: InjectedParameters = {}) {
return createConnector((config) => ({
// ...
}))
}
import { createConnector } from '@wagmi/core'
export type InjectedParameters = {}
export function injected(parameters: InjectedParameters = {}) {
return createConnector((config) => ({
// ...
}))
}
Parameters
ts
import { type CreateConnectorFn } from '@wagmi/core'
import { type CreateConnectorFn } from '@wagmi/core'
Read Creating Connectors for more info on the CreateConnectorFn
type.