<p>In your example you are telling it to place the transaction id as a GET request in the URI under the tx parameter. </p>

<pre><code>walletnotify=curl http://My.IP.Address:PortAppUses/walletnotify.js?tx=%s
</code></pre>

<p>All you would need to do inside of <code>walletnotify.js</code> is pull the <code>tx</code> GET, in nodejs express that would be something like:</p>

<pre><code>const express = require("express");
const app = express();
const request = require("request");

app.get("/", function(req, res){

    let transactionId = req.query.tx;

    //do whatever with transactionId

}); 
</code></pre>

CC BY-SA 3.0
2018-02-26T17:28:50.720Z
I already got it, but I appreciate it! Love your YouTube, by the way!
Setheroni
CC BY-SA 3.0
2018-02-25T04:30:22.357Z
2018-02-25T04:30:22.357Z
m1xolyd1an
<p>I'd like to get information from my bitcoin node running on a cloud server to be used to make changes in my NodeJS app running on my computer. So, in the bitcoin.conf file, should I have something like <code>walletnotify=curl http://My.IP.Address:PortAppUses/walletnotify.js?tx=%s</code>? If that's right, what do I write in the walletnotify.js file to simply save the incoming transaction id as a variable?</p>

<bitcoin-core><bitcoind><javascript><node.js><wallet-notify>
Can I use walletnotify or blocknotify remotely with a NodeJS application?
Setheroni
# Can I use walletnotify or blocknotify remotely with a NodeJS application?

(Asked by: username_0 on 2018-02-24)

I'd like to get information from my bitcoin node running on a cloud server to be used to make changes in my NodeJS app running on my computer. So, in the bitcoin.conf file, should I have something like `walletnotify=curl http://My.IP.Address:PortAppUses/walletnotify.js?tx=%s`? If that's right, what do I write in the walletnotify.js file to simply save the incoming transaction id as a variable?

**Tags:** bitcoin-core, bitcoind, javascript, node.js, wallet-notify


---

## 1 answers

### Answer by username_1 on 2018-02-25. Score: 1 | Accepted answer

In your example you are telling it to place the transaction id as a GET request in the URI under the tx parameter. 
walletnotify=curl http://My.IP.Address:PortAppUses/walletnotify.js?tx=%s

All you would need to do inside of walletnotify.js is pull the tx GET, in nodejs express that would be something like:
const express = require("express");
const app = express();
const request = require("request");

app.get("/", function(req, res){

    let transactionId = req.query.tx;

    //do whatever with transactionId

});

> **Comments:**
> **username_0**: I already got it, but I appreciate it! Love your YouTube, by the way!  

---

