Giter Club home page Giter Club logo

subql-dictionary's Introduction

What is SubQuery?

SubQuery powers the next generation of Polkadot dApps by allowing developers to extract, transform and query blockchain data in real time using GraphQL. In addition to this, SubQuery provides production quality hosting infrastructure to run these projects in.

What is SubQuery Dictionary

This special SubQuery Project provides a dictionary of data that pre-indexes events on chain to dramatically improve indexing the performance of your own SubQuery Project, sometimes up to 10x faster.

It scans over the network, and records the module and method for every event/extrinsic on each block. See the standard entities in the schema.graphql file within this project to see what fields are available.

If you want to create your SubQuery Dictionary to speed up indexing of your own Substrate chain, fork this project and let us know

Getting Started

1. Add the dictionary URL to your SubQuery project

network:
  endpoint: wss://polkadot.api.onfinality.io/public-ws
  dictionary: https://api.subquery.network/sq/subquery/polkadot-dictionary

Understanding the dictionary

Visit How the dictionary works for more information.

Adding your own dictionary

  1. Fork the repository.
  2. Add your own dictionary project to the root directory.
  3. To publish on our Managed Services, you can use the GitHub actions.
    1. Set a GitHub environment to DEPLOYMENT.
    2. Set a GitHub secret name to SUBQL_ACCES_TOKEN (Your token generated on https://project.subquery.network/ ) under the previously set environment.
    3. Create a project using the UI or the CLI.
    4. Navigate to GitHub actions in your forked repository and select the workflow Deploy to Hosted Service.
      1. Enter your dictionary directory name in the input field Dictionary directory name e.g.acala.
      2. For the input field Project Name enter the name of the project created earlier (If your project name uses spaces please replace them with - e.g. perfect - dictionary -> perfect---dictionary).

subql-dictionary's People

Contributors

jiqiang90 avatar stwiname avatar bz888 avatar bighammerw avatar vovunku avatar jamesbayly avatar lamcc21 avatar hobbydev71 avatar fishmonger45 avatar ianhe8x avatar shunjizhan avatar woeom avatar seandotau 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.