Node.js blockchain bitcoin api

+1 vote

So I want to use this: (taken from their API site -> node.js documentation)

Recieving payments:

var blockchain = require('');
var identifier = 'myidentifier'; 
var password = 'mypassword';
var myWallet = new blockchain.MyWallet(identifier, password);
var myBTCadress = '14Q3ufL1BUHtWskBKtsshVDATRY65TaJMB';

Ok, so the recieving part:

var receive = new blockchain.Receive( [confirmations: 1], ? ); // What do I need to put here?

Documentation says: callbackURL: the url to which the callback should be sent (string)

I don't understand what URL it should go to?!

Sep 10, 2018 in Blockchain by digger
• 27,620 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

The callback URL should be the one that redirects back to your site. So setup a callback url with blockchain like...

Assuming you are using something like express in your app make a route like so.

app.get('/callback/blockchain', function (req, res) {

// Stuff here  


you will prob need to include

var https = require('https'); 

That way then you can set up your logic inside for example...

// Stuff here
 var options = {
    host : '',
    path : '/some/path/',
    port : 443,
    method : 'GET'
 var request = https.request(options, function(response){
    var body = ""
    response.on('data', function(data) {
      body += data;
    response.on('end', function() {
  request.on('error', function(e) {
    console.log('Problem with request: ' + e.message);
answered Sep 10, 2018 by slayer
• 29,040 points

Related Questions In Blockchain

0 votes
1 answer

Can't import "" to Node.js.. Need help.

Aurelia is a client-side framework and blockchain ...READ MORE

answered Jun 27, 2018 in Blockchain by Omkar
• 65,840 points
0 votes
1 answer

Bitcoin: parsing Blockchain API using JSON

Because you only add one address to ...READ MORE

answered Aug 22, 2018 in Blockchain by digger
• 27,620 points
+1 vote
1 answer

Node.js API wrapper for altcoin exchange

In order to pass these variables to ...READ MORE

answered Sep 10, 2018 in Blockchain by digger
• 27,620 points
+1 vote
1 answer

How blockchain node behaves upon receiving a new block when previous block wasn't acquired?

A node will ask for block number ...READ MORE

answered Mar 26, 2018 in Blockchain by Perry
• 16,450 points
+1 vote
3 answers

Removing double quotes from a string from JSON response in PHP

Just remove the json_encode call, and it should work: $resp ...READ MORE

answered Sep 12, 2018 in Blockchain by digger
• 27,620 points
0 votes
1 answer
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
0 votes
1 answer

Not able to send payments using Blockchain API.

Try the following code. It should help ...READ MORE

answered Jul 31, 2018 in Blockchain by slayer
• 29,040 points
0 votes
1 answer

Android Socket connection to bitcoin node

The checkSum field is mandatory and fellow ...READ MORE

answered Aug 29, 2018 in Blockchain by slayer
• 29,040 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.