Giter Site home page Giter Site logo

ontology-holder's Introduction

Ontology-holder

Ontology-holder show the holder of OEP4.

How to use?

Ontology-holder need an ontology node to sync block data, and need a mysql scheme (ontolog-holder) to save data.

Rename config-simpe.json to config.json, and set Mysql config, and set Ontology config.

There are two important item, "BlockHeight" and "Contracts". "Contracts" includes the hash of oep4 contracts which you want to get the holders. "BlockHeight" item indicates the height where program will search blocks.

Note that you need create db scheme "ontology-holder" with utf-8 charset befer setup Ontology-holder.

API

contract must be OEP4 contract, such as b71fc841b203bcf08e81311131671885db689faf

  1. Get holder list of asset
http://localhost:8080/getAssetHolder?qid=1&contract=b71fc841b203bcf08e81311131671885db689faf&from=0&count=100

from and count must larger 0, and count must smaller than 100.

  1. Get asset base info
http://localhost:8080/getAssetHolderCount?qid=1&contract=b71fc841b203bcf08e81311131671885db689faf
  1. Get total holder count
http://localhost:8080/getAssetHolderCount?qid=1&contract=b71fc841b203bcf08e81311131671885db689faf
  1. Get balance of address
http://localhost:8090/getBalance?address=98067c0ae9fd8f109956e06f5519a9bc0963f699&contract=b71fc841b203bcf08e81311131671885db689faf

contract param is option.

License

The Ontology library is licensed under the GNU Lesser General Public License v3.0, read the LICENSE file in the root directory of the project for details.

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.