Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- daemon=1
- rpcallowip=0.0.0.0/0
- rpcuser=xxxxxxxx
- rpcpassword=xxxxxxxxx
- server=1
- rest=1
- zmqpubhashblock=tcp://*:28332
- zmqpubhashtx=tcp://*:28332
- zmqpubrawblock=tcp://*:28332
- zmqpubrawtx=tcp://*:28332
- rpcworkqueue=100
- const socket = ZMQ.socket('sub')
- socket.connect('tcp://myserverip:28332')
- socket.on('message', (channel, data) => {
- console.log(channel.toString())
- })
- socket.subscribe('rawtx')
- socket.subscribe('rawblock')
- socket.subscribe('rawblock')
- socket.subscribe('rawtx')
Add Comment
Please, Sign In to add comment