Giter Site home page Giter Site logo

antchain.org's Introduction

antchain.org

AntShares 小蚁区块链浏览器
Blockchain explorer for AntShares.

###使用指南

  1. 搭建 mongodb + python + flask 运行环境。
  2. 从官方RPC接口读取区块数据进行入库mongodb,运行:
    • python db/main.py (同步区块)
    • python db/main.py height (回滚到height,并从这个高度开始同步区块)
  3. 网站入口 web/web.py, enjoy.

###数据库结构

  1. blocks表,只存储 blockdata 结构,将 transaction 剔除。
  2. txs表,存储 transaction 完整结构。
  3. coins表,将每一笔 vin / vout 状态存入,如果是vin,则根据txid/vout标记该笔资产已花费,如果是vout,则标记该笔资产被创建。
  4. ads表,表示每个 address 对应的 asset 资产余额信息。ads表可通过计算coins表进行构建。

Web: http://www.antchain.org
Mail: zhengq1#hotmail.com

antchain.org's People

Contributors

zhengq1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

antchain.org's Issues

Some API calls returns empty responses

Most of the available able calls return a 200 response with proper content-type (application/json) but a content-length of 0 (i.e. empty). Specifically these calls are not currently returning data:

  • /api/v1/block/get_current_block
  • /api/v1/block/get_block/{height}
  • /api/v1/block/get_block/{blockhash}
  • /api/v1/tx/get_tx/{txid}

While these calls are returning data:

  • /api/v1/address/get_value/{address}
  • /api/v1/block/get_current_height
  • /api/v1/address/get_unspent/{address}

Edit: Just noticed that the source code is clearly returning an empty string. I'm not a great Python programmer but would you accept pull requests if I'm able to look into implementing those empty API calls?

Missing Functionality

The live antchain.org has some extra features (like the unspent coins endpoint) that aren't present here on github.

http://antchain.org/api/v1/address/get_unspent/AGX8Xw1HbWGFwozH4tH1ej14FXVdkeTTau

Any chance to push these changes?

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.