Not sure what you're after but it would be fairly easy to add socket support or a db of some kind.
Basically I'm going to build a wallet service but for internal only, which will be use for payment system in our public product. So nothing fancy.
I'm not quite understand nodejs.
Could you be kind to tell me how this code works ?
From what I see you just connect to the bitcoin node using rpc, then waiting for transaction with "peer.on("tx", function(m) {...});" and "peer.on('block', function(m) {...}" when there is a new block found.
Shouldn't we send some rpc message before waiting new tx ? Cause I didn't see any rpc method that can notify new tx unless for our own wallet.
I need to monitor all transaction not just my wallet.