Skip to main content

Connector

The interface to bridge any wallet provider to the AbstractClientWallet universal interface.

This class is not meant to be used directly, but instead be extended to build your own wallet.

Usage

export class MyConnector extends Connector {
connect(args?: ConnectParams<TConnectParams>): Promise<string>
disconnect(): Promise<void>
getAddress(): Promise<string>
getSigner(): Promise<Signer>
getProvider(): Promise<providers.Provider>
switchChain(chainId: number): Promise<void>
isConnected(): Promise<boolean>
setupListeners(): Promise<void>
updateChains(chains: Chain[]): void
}