Giter VIP home page Giter VIP logo

coin-rpc's Introduction

通过节点端获取到区块数据,解析到本地数据库

demo 基于BTM节点。

应用到 其它的钱包类型 可修改demo内对应的方法即可【主要文件位于-./DB/db.py】,数据库部分直接更改配置即可。

BTC修改请参考btc-rpc示例

  • demo仅仅将数据解析到本地数据库(MongoDB),你可以扩展支持节点其它命令。

  • demo解析在节点端完成,关于本地手动解析数据请参考:electrumx,推荐手动解析交易数据。

  • BTM请求节点属于JSON而非JSON-RPC,BTC是JSON-RPC。修改时注意数据结构差异。

  • 关于BTC不支持IPV6,请参考:bitCoin-IPv6-issues

  • BTC默认不建立index,'./bitcoin-cli getrawtransaction'该命令仅支持查询自己钱包的信息,通过'./bitcoind -reindex -txindex'命令来建立index后支持查询区块所有交易信息(耗时较长)

  • BTC参考:BTC-RPC命令

coin-rpc's People

Contributors

0x1af2aec8f957 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.