Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.phantom.com/llms.txt

Use this file to discover all available pages before exploring further.

window.phantom.ethereum._events

An object containing all of the events that the provider has emitted or logged.
const events = window.phantom.ethereum._events;
console.log(events);
// Events {chainChanged: Array(2), accountsChanged: EE}
This is not a recommended way to keep track of different events. The provider implements a Node.js EventEmitter API to emit different events happening within the wallet and/or dapp. For more details, see Events.