Post
Topic
Board Web Wallets
Re: Blockchain.info - Bitcoin Block explorer & Currency Statistics
by
sedum
on 26/11/2012, 20:18:34 UTC

I am trying to connect to the Blockchain.info wallet API, but i keep getting disconnected. I've tried the recommended wrapper for ruby https://github.com/jjeffus/rpcjson, and i've tried simply with net/http. I just keep getting this error

bc = RPC::JSON::Client.new 'https://e6152eDbf-85f7-527e-9adf-8b1dt7fa4312a:password@blockchain.info:443', 1.1 => #, @version=1.1> 1.9.3-p194 :018 > bc.getinfo Errno::ECONNRESET: Connection reset by peer

I have tried connecting through bitcoind and that works fine. Forgive me if im missing something obvious.

There have been reports of problems with that ruby library previously. Honestly i'm am not sure what is causing it. Will it connect to the Bitcoind RPC server?

-----

Please upvote http://news.ycombinator.com/item?id=4833338

Yes, it works fine locally. I've written my own with net/http as well, but I get disconnected with that as well. I have really no idea what the problem can be. Do i nede to encode something? I just have it something like this
@uri = URI.parse('http://e6429dbf-88f7-5347e-9adf-8b65e574fda212a:password@blockchain.info:443')