Skip to main content

removeListener()

EIP-1193 events

Removes the listener function as callback of the selected RPC event.

Warning

This method will always return, even if there are errors while removing the listener, for controlling errors generated during the deregistration process use async removeListenerAsync(eventName, listener).

Type

removeListener(eventName, listener): void

Parameters
NameTypeDescription
eventNameStringEvent listened. Depeding on the provider chain one of Constellation RPC event or an Ethereum RPC event.
listener()=>anyCallback function.
Return Type

void

Example
TypeScript
provider.removeListener("accountsChanged", listener);