<p>Both. A notification will be sent when a transaction is added to the mempool. For newly added blocks, a notification will be sent for every transaction in that block, so when a transaction is confirmed, there will be a notification for it.</p>

CC BY-SA 4.0
2020-10-21T06:58:31.107Z
Thanks @Andrew, So two notification will be coming, one when sent to mempool and another when it got added in the block right ?
Tharun Prabakaran
CC BY-SA 4.0
2020-10-21T15:51:35.147Z
Yes, that is correct.
Ava Chow
CC BY-SA 4.0
2020-10-21T00:47:18.960Z
2020-10-21T00:47:18.960Z
Ava Chow
<p>Bitcoin Core ZMQ messaging system has <code>hashtx</code> along with 4 other topics. But nowhere it is documented whether the transactions that comes from <code>hashtx</code> are confirmed transactions which are added in a block or unconfirmed transactions that is yet to mined.</p>

<bitcoin-core><transactions><bitcoind><hash><zeromq>
Bitcoin Core ZMQ "hashTx"
Tharun Prabakaran
# Bitcoin Core ZMQ "hashTx"

(Asked by: username_0 on 2020-10-20)

Bitcoin Core ZMQ messaging system has `hashtx` along with 4 other topics. But nowhere it is documented whether the transactions that comes from `hashtx` are confirmed transactions which are added in a block or unconfirmed transactions that is yet to mined.

**Tags:** bitcoin-core, transactions, bitcoind, hash, zeromq


---

## 1 answers

### Answer by username_1 on 2020-10-21. Score: 1 | Accepted answer

Both. A notification will be sent when a transaction is added to the mempool. For newly added blocks, a notification will be sent for every transaction in that block, so when a transaction is confirmed, there will be a notification for it.

> **Comments:**
> **username_0**: Thanks @Andrew, So two notification will be coming, one when sent to mempool and another when it got added in the block right ?  
> **username_1**: Yes, that is correct.  

---

