on
Allows you to subscribe to events emitted by the signer
Import
Parameters
event
AlchemySignerEvent
the event to subscribe to
listener
AlchemySignerEvents[AlchemySignerEvent]
the function to run when the event is emitted
Returns
() => void
a function to remove the listener