WagmiConnector
class WagmiConnector< Provider = any, Options = any, Signer = any,> extends EventEmitter<WagmiConnectorEvents<Provider>> {}
function constructor< Provider = any, Options = any, Signer = any,>(__namedParameters: { chains?: Array<Chain>; options: Options;
function connect(config?: { chainId?: number;}): Promise<Required<WagmiConnectorData<any>>>;
function getProvider(config?: { chainId?: number;}): Promise<Provider>;
function getSigner(config?: { chainId?: number }): Promise<Signer>;
function switchChain(chainId: number): Promise<Chain>;
function updateChains(chains: Array<Chain>): void;
Inherited from
EventEmitter.addListener
function addListener<T extends keyof WagmiConnectorEvents<Provider>>( event: T, fn: ( ...args: ArgumentMap<WagmiConnectorEvents<Provider>>[Extract< T, keyof WagmiConnectorEvents<Provider> >] ) => void, context?: any,): this;
Inherited from
EventEmitter.emit
Calls each of the listeners registered for a given event.
function emit<T extends keyof WagmiConnectorEvents<Provider>>( event: T, ...args: ArgumentMap<WagmiConnectorEvents<Provider>>[Extract< T, keyof WagmiConnectorEvents<Provider> >]): boolean;
Inherited from
EventEmitter.listeners
Return the listeners registered for a given event.
function listeners<T extends keyof WagmiConnectorEvents<Provider>>( event: T,): Array< ( ...args: ArgumentMap<WagmiConnectorEvents<Provider>>[Extract< T, keyof WagmiConnectorEvents<Provider> >] ) => void>;
Inherited from
EventEmitter.off
function off<T extends keyof WagmiConnectorEvents<Provider>>( event: T, fn?: ( ...args: ArgumentMap<WagmiConnectorEvents<Provider>>[Extract< T, keyof WagmiConnectorEvents<Provider> >] ) => void, context?: any, once?: boolean,): this;
Inherited from
EventEmitter.on
Add a listener for a given event.
function on<T extends keyof WagmiConnectorEvents<Provider>>( event: T, fn: ( ...args: ArgumentMap<WagmiConnectorEvents<Provider>>[Extract< T, keyof WagmiConnectorEvents<Provider> >] ) => void, context?: any,): this;
Inherited from
EventEmitter.once
Add a one-time listener for a given event.
function once<T extends keyof WagmiConnectorEvents<Provider>>( event: T, fn: ( ...args: ArgumentMap<WagmiConnectorEvents<Provider>>[Extract< T, keyof WagmiConnectorEvents<Provider> >] ) => void, context?: any,): this;
Inherited from
EventEmitter.removeListener
Remove the listeners of a given event.
function removeListener< T extends keyof WagmiConnectorEvents<Provider>,>( event: T, fn?: ( ...args: ArgumentMap<WagmiConnectorEvents<Provider>>[Extract< T, keyof WagmiConnectorEvents<Provider> >] ) => void, context?: any, once?: boolean,): this;
let prefixed: string | boolean;