Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 423 Bytes

File metadata and controls

13 lines (9 loc) · 423 Bytes

_eventsCount

window.phantom.ethereum._eventsCount

An object containing the number of events that have happened

const eventsCount = window.phantom.ethereum._eventsCount;
console.log(eventsCount);
// 2

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.