0

I'd like to use Greg Maxwell's banlist for my Bitcoin node in Windows.

When I enter the commands however, I receive the following error message for every bitcoin-cli command:

bitcoin\bin>bitcoin-cli setban ###.###.###.###/32 add 31557600 error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set. See -rpcpassword and -stdinrpcpass. Configuration file: (C:\Users\admin\AppData\Roaming\Bitcoin\bitcoin.conf)

How can I get this to work?

  • Possible duplicate of bitcoin-cli could not locate RPC credentials – MCCCS Mar 27 at 13:46
  • What's in your bitcoin.conf file? Did you change the data directory used by Bitcoin Core either via the -datadir option or in the GUI the first time you started it? – Andrew Chow Mar 27 at 14:34
  • Actually the command worked now when referring to the correct bitcoin.conf file and data directory as parameters (thank you!) - however, the "setban" parameter throws a "Method not found" error message. – richey Mar 27 at 18:22
  • 1
    What version of Bitcoin Core are you using? – Andrew Chow Mar 28 at 3:30
  • version 0.17.0.1 – richey Mar 29 at 2:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.