<p>Alright, so, pretending it's &quot;Bitcoin&quot; instead of &quot;cryptocurrencies&quot;, if you don't run your own full node and want to somehow check you've received the money with Node JS, you can just use the API of a block explorer (e.g., <a href="https://mempool.space/docs/api/websocket" rel="nofollow noreferrer">mempool.space</a>).</p>
<p>Alternatively, you can just scrape the page of the block explorer with <a href="https://puppeteer.github.io/puppeteer/" rel="nofollow noreferrer">puppeteer</a>.</p>

CC BY-SA 4.0
2022-06-17T17:24:48.373Z
2022-06-17T17:24:48.373Z
Angelo
<p>I am trying to write a gateway system where users can check the data upon the callback that is sent to their specific url.</p>
<p>I am wondering how I could go about checking that the payment has been received.</p>
<p>I have code that will generate address's and check balances but not an event or socket to automatically check when that address has received funds.</p>
<p>What is the best way to go about this?</p>
<p>I know i can use blockchains online to read data, but there is not 1 blockchain that does all cryptos so i'd be baffling between here and there which is not what I want to do really.</p>
<p>I am NOT running my own node, but generating public and private keys.</p>
<p>Many thanks in advance!</p>

CC BY-SA 4.0
2022-06-17T16:58:40.090Z
Hi php dev, this site collects questions about Bitcoin, questions about "all cryptocurrencies" for which the answer vastly differs to an equivalent question only about Bitcoin are likely going to be considered out of scope by our community. Either way, the answer is: get the data from one or multiple service that provide it, or run your own nodes.
Murch
CC BY-SA 4.0
2022-06-17T17:04:11.693Z
@Murch Okay thank you. Then please pretend I just stated Bitcoin only. None of the other coins. If I get it working with 1 I can do it with all.
php dev
<cryptography><payment><ripple-gateways><nodejs>
What is the best way to check multiple crypto coins payments are paid - NODE JS
php dev
# What is the best way to check multiple crypto coins payments are paid - NODE JS

(Asked by: username_0 on 2022-06-17)

I am trying to write a gateway system where users can check the data upon the callback that is sent to their specific url.

I am wondering how I could go about checking that the payment has been received.

I have code that will generate address's and check balances but not an event or socket to automatically check when that address has received funds.

What is the best way to go about this?

I know i can use blockchains online to read data, but there is not 1 blockchain that does all cryptos so i'd be baffling between here and there which is not what I want to do really.

I am NOT running my own node, but generating public and private keys.

Many thanks in advance!

**Tags:** cryptography, payment, ripple-gateways, nodejs

> **Comments:**
> **username_1**: Hi username_0, this site collects questions about Bitcoin, questions about "all cryptocurrencies" for which the answer vastly differs to an equivalent question only about Bitcoin are likely going to be considered out of scope by our community. Either way, the answer is: get the data from one or multiple service that provide it, or run your own nodes.  
> **username_0**: @username_1 Okay thank you. Then please pretend I just stated Bitcoin only. None of the other coins. If I get it working with 1 I can do it with all.  

---

## 1 answers

### Answer by username_2 on 2022-06-17. Score: 1

Alright, so, pretending it's "Bitcoin" instead of "cryptocurrencies", if you don't run your own full node and want to somehow check you've received the money with Node JS, you can just use the API of a block explorer (e.g., [mempool.space](https://mempool.space/docs/api/websocket)).

Alternatively, you can just scrape the page of the block explorer with [puppeteer](https://puppeteer.github.io/puppeteer/).


---

