Giter VIP home page Giter VIP logo

mvc-assets-indexer's Introduction

mvc-assets-indexer

The index service for P2PKH and MetaContract Fungible Token (FT) assets on MicroVisionChain.

It is an open-sourced data service that everyone can run and deploy. There are several basic APIs of this indexer:

  • broadcast transaction
  • query P2PKH UTXO and balance by an address
  • query FT UTXO and balance by an address

With this service, developers can build their own apps associated with assets on MicroVisionChain, sending and receiving them, etc.

You can run your own service, or use our public deployments of this indexer directly.

We have also built a CLI wallet that can work with this indexer, helping you send and receive SPACE and Tokens.

Deployment

Installation

npm install

Running the app

# development
npm run start

# watch mode
npm run start:dev

# production mode
npm run start:prod

Benchmark

Database

  • Operating System: Ubuntu 20.04
  • CPU: 2 cores
  • RAM: 8GB;
  • MySQL version: 8.0.22
  • mysql cnf
# Default Homebrew MySQL server config
[mysqld]
# Only allow connections from localhost
bind-address = 127.0.0.1
mysqlx-bind-address = 127.0.0.1
innodb_buffer_pool_instances = 4
innodb_buffer_pool_size = 4G
innodb_buffer_pool_chunk_size = 1G
innodb_read_io_threads = 8
innodb_parallel_read_threads = 16
innodb_write_io_threads = 8

Server

  • Operating System: Ubuntu 20.04
  • CPU: 2 cores
  • RAM: 8GB;
  • NODE_OPTIONS="--max-old-space-size=4096"

Performance

Tx numbers Block numbers Block per tx Index time (s) Tps
6242999 68397 91.3 26028 239.86

Changelog

v1.4.9 (2024-04-22)

v1.4.8 (2024-02-27)

  • Added
    • block sync progress log
    • indexer ready progress log
  • Changed
    • optimize block sync logic, 59476 block sync time is about 5 hours.
    • optimize database table index, 80% reduction in database pressure.

mvc-assets-indexer's People

Contributors

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