web3data-js
web3data-js copied to clipboard
Accept a string as eventname parameter instead of object
Use Case:
Users want to use web3data event listeners like they use other javascript style listeners (standardization!!).
Requirements:
- Change the
.on()method to allow a string for the event name rather than an object
Example:
w3d.on('block', {filters: {number: 7280000}}, () => {})