Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm creating a pool, right now I'm trying to connect to bitcoin daemon, it responses with error "401", "HTTP Error 401 Unauthorized".

What should I enter in "login" and "password" fields?

share|improve this question
up vote 2 down vote accepted

Locate your bitcoin.conf file ( and add these lines:

rpcuser = MyRpcUsername
rpcpassword = MyRpcPassword

These are the credentials you should be also using in your program.

share|improve this answer
I have not enough reputation to vote up, but thank you! – user15441 May 13 '14 at 12:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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