Stop posting for free. Get paid for your social media content!
Join Arena App today and get paid in crypto!

Bitcoin Blockchain MySQL Database Inserter Configuration

Toolbox tries to read configuration from $HOME/.cyptobi/cryptobi.conf

If a config file is unavailable, then defaults will be applied.

The order of precendence from highest to lowest is:

  1. Command line options override all others.
  2. Config file options override defaults.
  3. Program defaults.


Set CRYPTOBI_HOME environment variable to the directory where you cloned the Crypto.BI Toolbox from Github.

On Linux:

$ export CRYPTOBI_HOME=/your/path/to/cryptobi_toolbox

The Python tools require additional configurations.


Default values are defined in toolbox/system/CBConfig.h and implemented in CBConfig.cpp

The defaults look for Bitcoin block files in $HOME/.bitcoin/blocks and Toolbox configuration file in $HOME/.Crypto.BI/ in Windows and Unix-like platforms (Mac / Linux tested).

Command Line Options

Command line options names and values are the same as those in the Toolbox configuration file.

You will find a complete listing of options and descriptions at toolbox/system/

Note that C++ and Python tools both use this file, which should not be refactored back into the C++ sources for this reason. Python includes and parses this file so we only have one central source of configuration options and avoid repetition in Python and other languages which may be implemented in the future.

At the time of this writing, contained these options:

        {"db.user", "Database username."},
	{"", "Database network hostname."},
	{"db.db", "Database schema/db name."},
	{"db.pass", "Database user password."},
	{"bitcoin_blocks_dir", "Directory where Bitcoin block files are located. Usually $HOME/.bitcoin/blocks"},
	{"log_dir", "Directory for Crypto.BI Toolbox logs."},
	{"log_to_file", "1 to log to file, 0 otherwise"},
	{"log_to_console", "1 to log to console stdout and stderr, 0 otherwise"},
	{"conf", "CryptoBI Toolbox config file. Usually $HOME/.Crypto.BI/"},
        {"threaded", "Run multithreaded mode? Default false"},
	{"threads", "How many threads to run? Default 2 in threaded mode"},

More options may be added or changed in the future, so please refer to the latest source code tree for the current version.


How To Read and Set Environmental and Shell Variables on a Linux VPS

How do I add environment variables? Toolbox Sources on Github

About the Author
Published by Toolbox Team - Cryptography and cryptocurrency software development specialists. In-house nerds, stay at home aficionados, anti-pandemic crew of coffee addict devs. Learn More About Us