Could not locate RPC credentials Error

1

I am trying to follow the instructions in the following post: Check status of daemon

When I try to run bitcoin-cli getblockchaininfo I get the following error:

enter image description here

When I look for the configuration file. It looks like it is not even there.

I am on Windows.

ADH

Posted 2017-09-04T15:12:04.460

Reputation: 181

2Is bitcoind running?Nick ODell 2017-09-04T20:30:57.507

This was the problem. I had to start the daemon with bitcoind first, and then open a new cmd prompt to run bitcoin-cli get bloackchaininfo. Please put this as the answer so I can accept it.ADH 2017-09-05T11:43:21.103

it's "getblockchaininfo" not get blockchaininfoilcarvo_sting 2018-01-13T18:33:52.727

Answers

4

You're getting this error because bitcoind isn't running. Once it is, it will create an authentication cookie, and bitcoin-cli will be able to connect.

To start bitcoind from cmd prompt, type:

cd C:/Program\ Files/Bitcoin/daemon/

Press enter, then type:

bitcoind

And press enter.

Nick ODell

Posted 2017-09-04T15:12:04.460

Reputation: 26 536