Do I need to be synced with the network to make remote RPC calls?

0

I want to make some RPC calls from my local computer to a server I have which is currently syncing with the network via $ bitcoind

I am trying to make RPC calls for things like getinfo but my request are failing. I just want to double check if it's even possible to hit it with a request and receive data back if its not synced up. I would have thought no, but I can use the bitcoin-cli from my server to get things like getinfo without an issue.

Anthony

Posted 2016-03-19T19:31:11.993

Reputation: 151

Answers

1

Yes it is possible.

Using the rpcwait flag will prevent calls from failing while bitcoind is starting up.

Aslo, make sure you have configured your bitcoin.conf file correctly.

rpcuser, rpcpassword, and rpcallowip need to be set and these params need to be passed to bitcoin-cli during an api call.

boris

Posted 2016-03-19T19:31:11.993

Reputation: 56

and server=1 right?Anthony 2016-03-19T20:58:51.647

anthony: The server field allows for bitcoin-qt to accept json-rpc commands. If you are running bitcoind you can leave that field commented out.boris 2016-03-19T21:09:50.293

What can I use for a wildcard? Will: rpcallowip=::/0 work? I have tried everything and can't get this to work, I am about to post a new question with more details.Anthony 2016-03-19T21:10:29.833