• Resolved samir13

    (@samir13)


    I have done setup and its config setup of bitcoin. I am trying to listen incoming transactions using zeromq I first tried to listen transaction using latest version but not work. Then tried with 5.3.1, 5.3.0 but that also not worked.
    Here is my script… var zmq = require("zeromq"),
    sock = zmq.socket("sub");
    sock.connect("tcp://52.66.249.25:29000");
    sock.subscribe('hashtx');
    console.log("Subscriber connected to port 29000");
    sock.on("message", function (topic, message) {
    console.log(topic.toString(), message.toString('hex'));
    }); In above script RPC Host : "52.66.249.25" but that not worked. So then I change host in config and make changes in script and set host : 127.0.0.1 but from this port also i unable to listen an incoming transactions. Here is my config file. testnet=1
    [test]
    txindex=1
    listen=1
    server=1
    rest=1
    rpcbind=0.0.0.0
    zmqpubrawblock=tcp://52.66.249.25:29000
    zmqpubrawtx=tcp://52.66.249.25:29000
    zmqpubhashtx=tcp://52.66.249.25:29000
    zmqpubhashblock=tcp://52.66.249.25:29000
    rpcallowip=0.0.0.0/0
    rpcuser=" "
    rpcpassword=" "
    rpcport=18332
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dashed-slug.net

    (@dashedslug)

    Hello,

    Because WordPress runs on top of a request-response web server, I have not implemented any ZMQ or websocket support.

    Furthermore, I’ve never worked with ZMQ and I’m not sure I can help you. If you are looking for help on how to do this, it’s better to ask on stackoverflow, or https://bitcoin.stackexchange.com/ or even ChatGPT.

    When you ask, tell them exactly what result you’re getting. “Not working” is usually not enough to understand the problem.

    One idea is that you should check any firewalls between your script and the machine running Bitcoin core. Is port 29000 available or is it blocked?

    Best of luck.

    with regards,

    Alex

    Thread Starter samir13

    (@samir13)

    Yes I checked with port 29000 and it is available.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable to listen incoming transaction using zeromq’ is closed to new replies.