removeListener()

EIP-1193 events

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

Type

removeListener(eventName, listener): void

Parameters

Name
Type
Description

eventName

String

Event listened. Depeding on the provider chain one of Constellation RPC event or an Ethereum RPC event.

listener

()=>any

Callback function.

Return Type

void

Example

TypeScript

provider.removeListener("accountsChanged", listener);

Last updated

Was this helpful?