Take the 2-minute tour ×
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

up vote 2 down vote accepted

Locate your bitcoin.conf file (https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File) and add these lines:

rpcuser = MyRpcUsername
rpcpassword = MyRpcPassword
server=1

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 at 12:44

Your Answer

 
discard

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.