I downloaded Bitcoin-Qt and synched. I downloaded pyminer to help me understand the mining process. But I need a username and password. Where do I get them for solo mining?


Add a file named bitcoin.conf to your data directory with the following values:

 # server=1 tells Bitcoin-QT to accept JSON-RPC commands.

 # You must set rpcuser and rpcpassword to secure the JSON-RPC api
 rpcpassword=<a password you make up>

Tell pyminer to mine at localhost with the password/username combo you just used.

  • I'm on OSX. Where does the bitcoin.conf file go so Bitcoin-QT will pick it up?
    – dacracot
    Apr 23 '13 at 19:46
  • 1
    @dacracot In your data directory. See this page.
    – Nick ODell
    Apr 23 '13 at 20:07

You just make them up. They just need to match on both ends (the bitcoin program and the mining program).

  • But the Bitcoin-Qt program never asked me to create one. I looked for it, and found nothing.
    – dacracot
    Apr 23 '13 at 5:15
  • 3
    It's in the documentation. Apr 23 '13 at 5:18
  • While I appreciate your response and that I should RTFM, so much documentation and terminology is rather obtuse for someone new to the process. A more directed response, as given by Nick ODell, saved me from reading much that was not applicable and solved my problem.
    – dacracot
    Apr 24 '13 at 4:49

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