Skip to content

Instantly share code, notes, and snippets.

@tomarsachin2271
Created October 16, 2019 05:46
Show Gist options
  • Save tomarsachin2271/6e7f0447ee151ec378a0196dc5d67eb3 to your computer and use it in GitHub Desktop.
Save tomarsachin2271/6e7f0447ee151ec378a0196dc5d67eb3 to your computer and use it in GitHub Desktop.
const subscription = web3.eth.subscribe('logs',{
topics:['0x5983cdcaa370320b76fe01a3a32a0430e6a13b9f47a55e806afb13b5aef95a12']
}, function(error, result){
if(error) {
console.error(error);
}
}).on("data", function(log) {
console.debug(log);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment