Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: lontivero on June 27, 2015, 05:23:19 PM



Title: REST inteface question
Post by: lontivero on June 27, 2015, 05:23:19 PM
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?


Title: Re: REST inteface question
Post by: jonas.schnelli on June 27, 2015, 07:30:15 PM
/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


Title: Re: REST inteface question
Post by: lontivero on June 27, 2015, 08:02:04 PM
/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.