eth-events
eth-events
is a library for querying and decoding Ethereum event logs
Install
npm install eth-events
API
// init eth-events; // get events by block range; // get events by filter (via eth_getLogs);
Usage
;; // contract details;;// provider endpoint;// either the initial block to begin the query || block number of when the contract was deployed; // init eth-events; // get events by block rangeethEvents.getEvents.then; ; // get events by filter (via eth_getLogs)ethEvents.getEventsByFilterfilter.then;
Development
Test
npm test
Compile typescript files and watch for changes
npm run dev
Compile typescript files & declarations
npm run build