Bitcoin Forum
May 14, 2024, 05:55:24 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: REST inteface question  (Read 627 times)
lontivero (OP)
Full Member
***
Offline Offline

Activity: 164
Merit: 128

Amazing times are coming


View Profile
June 27, 2015, 05:23:19 PM
 #1

Hi,

I am trying to use the rest interface included in 0.10.0 (I'm using 0.10.1) but cannot make it work.

This is what I do:

Run bitcoin-qt as follow:

bitcoin-qt.exe -testnet -rest -rpcport=18332

Inmediatly after that, I send a GET request:

http://127.0.0.1:18332/rest/chaininfo.json

The response is 503 - Service unavailable: a valid reason (verifying blocks / Loading Indexes / Something about wallet / etc - I don't remember the messages really but the point is the 503 error is ok )

Seconds after that, I send exactly the same request:

http://127.0.0.1:18332/rest/chaininfo.json

And I get a 404 - Not Found.

What am I doing wrong?
jonas.schnelli
Member
**
Offline Offline

Activity: 66
Merit: 10

bitcoin core contributor


View Profile WWW
June 27, 2015, 07:30:15 PM
 #2

/rest/getchaininfos is not available in the 0.10 branch [1].
You should test the rc2 of 0.11 (https://bitcoin.org/bin/bitcoin-core-0.11.0/test/).

[1] https://github.com/bitcoin/bitcoin/blob/0.10/src/rest.cpp#L223
lontivero (OP)
Full Member
***
Offline Offline

Activity: 164
Merit: 128

Amazing times are coming


View Profile
June 27, 2015, 08:02:04 PM
 #3

/rest/getchaininfos is not available in the 0.10 branch [1].
You should test the rc2 of 0.11 (https://bitcoin.org/bin/bitcoin-core-0.11.0/test/).

[1] https://github.com/bitcoin/bitcoin/blob/0.10/src/rest.cpp#L223

Wow! Thank you ver much. I tested with 0.11.0rc1 and it works perfectly well.
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!