Skip to content

API ReferenceReact provider and hooksFunction

unbindOnAccountChanged()

function unbindOnAccountChanged(listener): void;

Unbinds an event listener from the accountsChanged event of the injected browser wallet (window.ethereum), if it exists.

Parameters

ParameterTypeDescription
listenerOnAccountChangedListenerThe listener to unbind from the event.

Returns

void