Giter Club home page Giter Club logo

bitcoin_updater's Introduction

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

bitcoin_updater's People

Contributors

thallium205 avatar

Watchers

James Cloos avatar Ben Haim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.