Skip to content

on

Listen to events emitted by the client

Import

import { BaseSignerClient } from "@account-kit/signer";

Parameters

event

AlchemySignerClientEvent the event you want to listen to

listener

AlchemySignerClientEvents[AlchemySignerClientEvent] the callback function to execute when an event is fired

Returns

() => void a function that will remove the listener when called