<blockquote>
  <p>is there a way I could get a live feed of transactions directly from bitcoin core (cutting out the need for the BlockChain.com websocket API)</p>
</blockquote>

<p>Certainly. Bitcoin Core supports the <a href="http://zeromq.org/" rel="nofollow noreferrer">ZeroMQ</a> messaging protocol. It publishes a stream of blocks, block hashes, transactions, and transaction hashes to whatever port you specify. You can specify which of those you want to, they have to be explicitly enabled. This stream is always a reflection of what it is currently receiving over the network. Once it has validated a block or transaction, it will then push that out to the ZMQ stream.</p>

<p>You can then connect to the ZMQ stream with whatever software and parse the messages into their respective types.</p>

CC BY-SA 4.0
2018-09-12T13:43:35.303Z
2018-09-12T13:43:35.303Z
Ava Chow
<p>I am interested in both obtaining the entire blockchain transaction history data (for bitcoin) and a live feed of transactions for a data science project. BlockChain.com has a very useful websocket API for the latter and I have been downloading Bitcoin core to obtain the former. Given that bitcoin core clearly receives new transactions in real time - is there a way I could get a live feed of transactions directly from bitcoin core (cutting out the need for the BlockChain.com websocket API). Thanks. </p>

CC BY-SA 4.0
2018-09-12T09:41:16.690Z
Have a look at the zeromq options for bitcoind.
Jannes
<bitcoin-core><blockchain>
Can a live feed of blockchain transactions be obtained from using bitcoin core wallet?
ElisVandyck
# Can a live feed of blockchain transactions be obtained from using bitcoin core wallet?

(Asked by: username_0 on 2018-09-12)

I am interested in both obtaining the entire blockchain transaction history data (for bitcoin) and a live feed of transactions for a data science project. BlockChain.com has a very useful websocket API for the latter and I have been downloading Bitcoin core to obtain the former. Given that bitcoin core clearly receives new transactions in real time - is there a way I could get a live feed of transactions directly from bitcoin core (cutting out the need for the BlockChain.com websocket API). Thanks.

**Tags:** bitcoin-core, blockchain

> **Comments:**
> **username_1**: Have a look at the zeromq options for bitcoind.  

---

## 1 answers

### Answer by username_2 on 2018-09-12. Score: 1 | Accepted answer

> is there a way I could get a live feed of transactions directly from bitcoin core (cutting out the need for the BlockChain.com websocket API)

Certainly. Bitcoin Core supports the [ZeroMQ](http://zeromq.org/) messaging protocol. It publishes a stream of blocks, block hashes, transactions, and transaction hashes to whatever port you specify. You can specify which of those you want to, they have to be explicitly enabled. This stream is always a reflection of what it is currently receiving over the network. Once it has validated a block or transaction, it will then push that out to the ZMQ stream.

You can then connect to the ZMQ stream with whatever software and parse the messages into their respective types.


---

