Author

Topic: REST inteface question (Read 630 times)

full member
Activity: 164
Merit: 126
Amazing times are coming
June 27, 2015, 04: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.
member
Activity: 66
Merit: 10
bitcoin core contributor
June 27, 2015, 03: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
full member
Activity: 164
Merit: 126
Amazing times are coming
June 27, 2015, 01: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?
Jump to: