Author

Topic: Bitcoin Websocket Server/API (Read 1528 times)

newbie
Activity: 55
Merit: 0
May 14, 2014, 09:03:26 AM
#5
You can also try our own Websockets API as well, although is not open source:
https://support.biteasy.com/kb/websockets-api
newbie
Activity: 39
Merit: 0
May 12, 2014, 02:36:37 PM
#4
It obviously largely depends on your application, but btcd (an alternative bitcoin core implementation) natively provides support for Websockets and has an extension API that offers exactly this type of capability.  See the btcd JSON-RPC API wiki for the available Websocket extension methods and notifications.

There is sample node.js code on the linked wiki, and it works fine from Javascript through a broswer too.

Along the same lines, if you're willing to use Go for your application, there is a robust package, btcrpcclient which supports Websockets and the btcd extensions to make it easy to create a robust RPC client that automatically maintains the Websocket connection including auto-reconnect capability should the connection be interrupted for some reason and many other features.
newbie
Activity: 26
Merit: 0
May 12, 2014, 02:02:04 PM
#3
You can find something similar here:

http://dev.blockcypher.com/#websockets

Those are mostly private APIs but Websockets aren't hard to put in place. You can use socket.io as you mentioned for the websocket server, the difficulty is more getting access to the original event, which won't be websocket.
member
Activity: 106
Merit: 10
May 10, 2014, 01:56:11 AM
#2
Interesting.  Hadn't known about this functionality.

Looked over the API docs. and didn't see anything about it there.

If they still don't respond I'd assume there isn't an API for it.
newbie
Activity: 19
Merit: 0
May 09, 2014, 11:20:42 PM
#1
I've found https://blockchain.info/api/api_websocket really handy for watching addresses and transactions in realtime web apps with javascript.  I tried to ask blockchain.info if the implementation of this API is open source somewhere and didn't get a response.  I don't see it on their github page.  Does anyone know how this is implemented or if there are any open source alternatives that I could host myself?  Any ideas what technologies might be used to create an API like this?  socket.io? bitcoind or bitcoinj?
Jump to: