Where is the configuration file of Bitcoin-Qt kept?

7

2

I keep getting this error:

EXCEPTION: N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_15
program_options26invalid_config_file_syntaxEEEEE
the options configuration file contains an invalid line 'XXXXXXXXXXX'

Where can I find the bitcoin.conf file?

Haddar Macdasi

Posted 2013-05-24T18:56:18.123

Reputation: 845

Answers

12

The location of bitcoin.conf depends on your operating system:

Windows XP             C:\Documents and Settings\<username>\Application Data\Bitcoin\bitcoin.conf
Windows Vista, 7, 10C:\Users\<username>\AppData\Roaming\Bitcoin                                             
Linux                         /home/<username>/.bitcoin/bitcoin.conf                                                           
Mac OSX                  /Users/<username>/Library/Application Support/Bitcoin/bitcoin.conf               

Source

Nick ODell

Posted 2013-05-24T18:56:18.123

Reputation: 26 536

OSX -> OS X (e.g. ref. https://en.wikipedia.org/wiki/Mac_OS_X)

Peter Mortensen 2014-03-31T18:05:16.023

2On my mac the bitcoin.conf file doesn't exist. I'm not sure if simply creating it will cause it to be used by bitcoin-qtportforwardpodcast 2015-03-06T01:46:01.740

3@portforwardpodcast: Bitcoin Core will check for the existence of the file on startup, so yes, simply creating it is sufficient.Murch 2016-11-01T21:05:31.860

I use Linux Ubuntu(16.04 LTS) and i've found file /root/.config/Bitcoin/bitcoin.conf but it's content was not like a normal bitcoin.confАндрей Аршинов 2017-04-10T11:31:45.017

@PeterMortensen macOS, not OS X.MCCCS 2017-04-28T12:33:37.477

I have windows 8.1 and I can't find any bitcoin.conf file in my user folder...B T 2017-06-09T20:23:37.503

For Bitcoin Core, if the file doesn't exist go to Settings (or Preferences in the top menu on macOS) and click the button labeled "Open Configuration File". This will create a bitcoin.conf file and open it in a text editor. Make your changes and save, then restart Bitcoin Core.Nate Cook 2018-07-31T11:25:00.433

2

I would guess that that refers to your bitcoin.conf. There's platform-specific information on where to find it at: https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File

julian-goldsmith

Posted 2013-05-24T18:56:18.123

Reputation: 319

1

In bitcoin-core version 0.14.2, it looks for it in the data-dir folder https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File

The bitcoin.conf file is not created by default, you will need to create it yourself. And also, I never had a c:\users\[username]\appdata\roaming\bitcoin folder as many online answers will suggest, this is because when I installed the bitcoin core program, I chose to put my data directory in a different place than default.

Sean Bradley

Posted 2013-05-24T18:56:18.123

Reputation: 401