<p>The bcoin full node and wallet emit JavaScript events for things like blocks and transactions, which can be listened for with a websocket client.</p>
<p>There is a guide to sockets and events in bcoin here: bcoin.io/guides/events.html</p>
<p>If you have any more questions about bcoin you can <a href="https://bcoin.io/slack-signup.html" rel="nofollow noreferrer">join us on slack</a> or on IRC (Libera) #bcoin</p>

CC BY-SA 4.0
2021-12-16T00:54:38.327Z
Thanks for the answer, can you tell me if the websocket client notifies me only the confirmations that a transaction that I send has or also those that send me to my address?
Parcero
CC BY-SA 4.0
2021-12-16T01:32:52.057Z
Both sent and received TXs should be emitted by events.
pinhead
CC BY-SA 4.0
2021-12-04T15:29:55.883Z
2021-12-04T15:29:55.883Z
pinhead
<p>hello I am building a web application using nodejs, bcoin and my application provides the user with a bitcoin address in which to deposit funds, I would like to know how I can listen on my nodejs server:</p>
<ul>
<li>when the user deposits funds in the bitcoin address that my application provided</li>
<li>The deposit has gone through 12 confirmations.</li>
</ul>

<transactions><bcoin><deposit>
How to listen to deposits and confirmations of bitcoin transactions
Parcero
# How to listen to deposits and confirmations of bitcoin transactions

(Asked by: username_0 on 2021-12-04)

hello I am building a web application using nodejs, bcoin and my application provides the user with a bitcoin address in which to deposit funds, I would like to know how I can listen on my nodejs server:

* when the user deposits funds in the bitcoin address that my application provided
* The deposit has gone through 12 confirmations.

**Tags:** transactions, bcoin, deposit


---

## 1 answers

### Answer by username_1 on 2021-12-04. Score: 1 | Accepted answer

The bcoin full node and wallet emit JavaScript events for things like blocks and transactions, which can be listened for with a websocket client.

There is a guide to sockets and events in bcoin here: bcoin.io/guides/events.html

If you have any more questions about bcoin you can [join us on slack](https://bcoin.io/slack-signup.html) or on IRC (Libera) #bcoin

> **Comments:**
> **username_0**: Thanks for the answer, can you tell me if the websocket client notifies me only the confirmations that a transaction that I send has or also those that send me to my address?  
> **username_1**: Both sent and received TXs should be emitted by events.  

---

