Skip to content

About

Stores and updates the bitcoin blockchain and historical bitcoin market data into a mysql database.

Resources

Stars

17 stars

Watchers

2 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

Bitcoin Updater

This application can download the entire bitcoin blockchain, and keep it updated, using blockexplorer.com API. It can also download all the market data from the API of bitcoincharts.com and keep it up to date as well. It will store the information into a (somewhat) optimized MYSQL database.

Usage

[jdbc], [user], [pass], [schema_filepath (optional)] params... -i: iterates through the entire blockchain. adding missing links along the way -c: only adds the most recent blocks, stopping once the first existing link is found -h: fetches historical market data, stopping once the first existing link is found -b: builds the database schema. Must pass schema filepath to work.

Examples

First time usage:

  1. Create an empty MYSQL database, and change the jdbc path as necessary.
  2. java -jar Bitcoin_Updater.jar jdbc:mysql://localhost:3306/Bitcoin, username, password, schema.txt, -b

Usage examples: To recursively build the blockchain from scratch. If the block already exists in the database, it will skip it and continue. You can think of this option as a kind of consistency checker. java -jar Bitcoin_Updater.jar jdbc:mysql://localhost:3306/Bitcoin, username, password, -i

To recursively update the blockchain. If the block already exists in the database, the program will terminate java -jar Bitcoin_Updater.jar jdbc:mysql://localhost:3306/Bitcoin, username, password, -c

To update/build the historical market data. If the historical market data already exists, the program will terminate and go to the next market. java -jar Bitcoin_Updater.jar jdbc:mysql://localhost:3306/Bitcoin, username, password, -h

##Schema

About

Stores and updates the bitcoin blockchain and historical bitcoin market data into a mysql database.

Resources

Stars

17 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages