GithubHelp home page GithubHelp logo

btc-scan's Introduction

简介

btc-scan是一个用go语言实现的比特币钱包服务,旨在为比特币钱包客户端提供发起交易,查询UTXO,查询历史交易记录等接口。其基本原理是从全节点同步并解析交易数据,保存到本地leveldb数据库。

详细的设计思路见 《如何设计一个比特币钱包服务》

部署

拉取代码

git clone https://github.com/liyue201/btc-scan

编译docker镜像

./build_docker.sh

使用dcoker-comopse部署

docker-compose up -d

注意事项

需要等待所有区块交易同步完成之后,才能查询到正确的UTXO。

  • 可以使用 docker logs -f btcd 查看btcd同步情况。
  • 使用 docker logs -f btc_scan 查看btc-scan同步情况。

API文档

详见 《API文档》


欢迎打赏

走过路过的大佬,如果这个项目对您帮助,请往这扔几个铜板

  • BTC: 16L9w2vMn8XSFV7Ytar2LzHEsdDp3w9gM3
  • ETH: 0xE00a72aFb1890Bc4d0dcf2561aB26099cACEcD87
  • EOS: eosbetkiller

btc-scan's People

Contributors

liyue201 avatar

Watchers

 avatar  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.