API
@joyid/wagmi
JoyIdConnector

JoyIdConnector

JoyIdConnector is a Wagmi Connector ↗ (opens in a new tab), it can be used to integrate JoyID into your wagmi-based dApp.

Note that JoyIdConnector does not need to specify rpcURL or network in the EvmConig, it will automatically handled by Wagmi according to the chains you specified.

Types

import { Chain } from 'wagmi'
 
interface JoyIdConnectorOptions {
  // List of chains to support
  chains: Chain[]
  // JoyID EVM config
  options?: EvmConfig
}
 
constructor({ chains, options }: JoyIdConnectorOptions)

Usage

Check out Wagmi Guide.