Author

Topic: Using the blockchain.info Node.js API (Read 1695 times)

full member
Activity: 138
Merit: 100
More stuff will come.
September 14, 2015, 01:36:40 AM
#5
As far as I know the blockchain.info API only allows https requests so you have to change it into https for http

It does work for both http and https. defends on what you use.
sr. member
Activity: 490
Merit: 250
September 13, 2015, 01:13:36 PM
#4
As far as I know the blockchain.info API only allows https requests so you have to change it into https for http
full member
Activity: 138
Merit: 100
More stuff will come.
September 13, 2015, 12:16:01 AM
#3
wait, i think i figured it out...i need to do something like this?

Code:
var http = require('http');

var server = http.createServer();

then pass that into the receive.listen...



That code use to create your server. You must include this firsts

var receive = new blockchain.Receive([options,] callbackURL);

then use the receive variable on what you want to do.



legendary
Activity: 1610
Merit: 1004
September 12, 2015, 09:27:56 PM
#2
wait, i think i figured it out...i need to do something like this?

Code:
var http = require('http');

var server = http.createServer();

then pass that into the receive.listen...

legendary
Activity: 1610
Merit: 1004
September 12, 2015, 09:19:41 PM
#1
I'm trying to use the Blockchain.info Receive module documented here:
https://github.com/blockchain/api-v1-client-node/blob/master/docs/Receive.md

I can get the create method working properly, but I'm not exactly sure how to setup the receive.listen method to listen for the callback.

Namely, this point here:

Code:
server: http server (object, required)

what do i put in the server parameter, the address of my server? or the callback url that i specified when creating the forwarding address?


Any advice would be appreciated, thanks.
Jump to: