I'm quite new to bitcoin. I've been compiling the client from github and I want to run on a server as testnet and make some API requests. As I see in the documentation I should create a bitcoin.conf file. But where do I create this in case of compiled client

2 Answers 2


The location of your bitcoin.conf file depends on your operating system: https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File

Note that you can also pass any configuration value as command line argument.

  • thank you for your feedback I've been compiling on linux but when I check /home/user/.bitcoin folder do not exists. There is a bitcoin folder from I compiled the source
    – fefe
    Feb 17, 2014 at 9:37
  • If that folder does not exist, just create it! Feb 17, 2014 at 9:39
  • okay cool I will give a try
    – fefe
    Feb 17, 2014 at 9:40
  • if you run bitcoind with sudo the .bitcoin folder is created in /root/.bitcoin as im aware. If run without root its created in /home/user/.bitcoin . However, bitcoin does create the folder upon first start.
    – Aurigae
    Feb 17, 2014 at 13:27

The bitcoin.conf file has to be created within the .bitcoin folder.

Your Answer

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

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