Bitcoin Forum
June 30, 2024, 11:23:29 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain.info Bitcoin-Qt Compatible JSON RPC error  (Read 1034 times)
murasha (OP)
Member
**
Offline Offline

Activity: 109
Merit: 10


Developer


View Profile
August 03, 2014, 07:06:00 PM
 #1

Sending a JSON request to rpc.blockchain.info:80 according to https://blockchain.info/api/json_rpc_api manual returns strange response:
Code:
{"result":{"method":{"static":false,"name":"backupwallet","class":"piuk.rpc.RPC","params":"piuk.merchant.ApiKey","returns":"void"}},"error":null,"jsonrpc":"2.0"}

Actually I am making following request:
Code:
{"method":"getinfo","params":[],"id":1}

Any ideas what can cause this problem?
btcsql
Sr. Member
****
Offline Offline

Activity: 292
Merit: 250


View Profile
August 03, 2014, 09:53:11 PM
 #2

Blockchain.info's RPC API is completely unreliable. You should try port 443 though.
murasha (OP)
Member
**
Offline Offline

Activity: 109
Merit: 10


Developer


View Profile
August 04, 2014, 06:19:20 AM
 #3

I figured out that request must have header content-type: text/plain to make blockchain response correctly
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!