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.

3
  • 2
    Is bitcoind running?
    – Nick ODell
    Sep 4, 2017 at 20:30
  • 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
    Sep 5, 2017 at 11:43
  • it's "getblockchaininfo" not get blockchaininfo
    – Taha
    Jan 13, 2018 at 18:33

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.