Skip to content

mazaclub/btcplex

 
 

Repository files navigation

BTCplex

BTCplex is an open source Bitcoin block chain browser written in Go, it allows you to search and navigate the block chain. Also provides APIs to access data pragmatically.

This is an early release, you might expect some bugs.

## Requirements

Building BTCplex database takes 1+ week on a small server (dual core 1.2GHz/6GB RAM) and 28 hours on a more powerful server (i5/16GB RAM).

## Installation

Assuming you have:

You will also need to export CGO_LDFLAGS, needed to install levigo.

$ git clone https://github.com/tsileo/btcplex.git
$ cd btcplex
$ export CGO_LDFLAGS="-L/usr/local/lib -L/usr/local/lib -lsnappy"
$ ./build.sh
$ cp -r config.sample.json config.json
$ vim config.json

Start the initial import (the example use nohup, but you should use a tool like supervisord):

$ nohup ./bin/btcplex-import > import.log&

And once the process is done, you will have to restart you bitcoind with the -blocknotify``` parameter: -blocknotify="/home/thomas/btcplex/bin/btcplex-blocknotify -c /home/thomas/btcplex/config.json %s". Now you can start btcplex-prod``:

$ nohup ./bin/btcplex-prod > prod.log&

Even while importing, you can start the webserver:

$ ./bin/btcplex-server

Roadmap

  • Stabilize everything for 1.0 release.
  • Make sure a transaction can't be processed multiples times
  • A receive payment API

Some features that are on my TODO list:

  • An easy way to monitor Bitcoin address via API (maybe using Webhooks)
  • Convert BTC to fiat money easily
  • An official Python module to interact with the API and offer a reliable way to track address
  • An official JS lib to interact with the API
  • A Watch-only addresses page
  • Display unconfirmed transactions on address page
  • Live notification on a unconfirmed transaction page when it actually get included in a block
  • Parse the coinbase to extract which pool mined the block
  • An admin interface to monitor bitcoind/BTCplex
  • New SSE endoind: utxin/utxout for a given address
  • Escrow transaction handling
  • Docker build
  • Provides supervisord config
  • ... (don't hesitate to request features!)

## Documentation

The documentation is written in Markdown and is available in the docs directory, it's also available online (powered by MkDocs) on docs.btcplex.com.

## Contribution

Contribution are welcome, see HACKING.md and DESIGN.md to get started.

Feedback / Support

You can ping me @trucsdedev/contact@btcplex.com/thomas.sileo@gmail.com if you have any feedback/issue.

## Donation

BTC: 16obt7HXb3PmyDb1wZMA2X7HYPUPHp45GB

## License (MIT)

Copyright (c) 2014 Thomas Sileo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

BTCplex is an open source Bitcoin block chain browser written in Go, it allows you to search and navigate the block chain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.1%
  • Shell 0.9%