About
Apps & Services
OnFinality

OnFinality (opens in a new tab) is a blockchain infrastructure platform that saves web3 builders time and makes their lives easier. OnFinality delivers scalable API endpoints, nodes, and industry‑leading data indexer hosting for the largest teams in blockchain.

OnFinality Indexing now offers our easy to use, enterprise grade SubQuery and Subgraph managed service to ZetaChain so you can sleep easy knowing that your most important asset - your data - is in safe hands

In this tutorial we will run a new ZetaChain SubQuery project. The process for Subgraph Indexing (opens in a new tab), though almost identical, can be found here

Before getting started, ensure you have:

  • A working SubQuery project for ZetaChain Network
  • A GitHub repository or IPFS-hosted version of your project - we will use 'QmeUwNvKGoaL211UfgEm2kbSztFCTJ2RuCXzbRRUacCaFx' for this tutorial
  • An account on OnFinality’s Indexing Service

To create your first project, head to OnFinality Indexing (opens in a new tab) Service. You'll need to authenticate with your GitHub account to login.

OnFinality Indexing sign‑in screen

Start by clicking on "Create Project". You'll be taken to the new project form. Start by selecting what project type you would like to deploy (SubQuery) and enter the Name & Description

Create Project form in OnFinality Indexing

While creating a project will setup the display details of the project, you must deploy a version of it before it becomes operational. Deploying a version triggers an indexing operation to start, and sets up the required query service to start accepting GraphQL requests. You can also deploy new versions to existing projects here. With your new project, you'll see a "Deploy your first version" button.

New project page with Deploy your first version button

Click this, and fill in the required information about the deployment:

Deploy version form

  • CID: Provide your IPFS deployment CID from Getting Ready
  • Manifest: The details are obtained from the contents of the provided CID, used to confirm that you have the correct deployment Manifest details derived from IPFS CID
  • Query Version: This is the version of SubQuery's query service that you want to run this project on. We suggest using the latest version
  • Advanced Settings: There are numerous advanced settings which are explained via the in built help feature. Advanced settings panel with built‑in help
  • Network Endpoints: The RPC endpoint used to read data from ZetaChain

Once submitted, OnFinality will begin indexing your project. Depending on ZetaChain Network's chain state and your query configuration, this may take a few minutes to fully sync.

Once your deployment has successfully completed and our nodes have indexed your data from the chain, you'll be able to connect to your project via the displayed GraphQL Query endpoint.

GraphQL query endpoint for deployed project

Alternatively, you can click on the three dots next to the title of your project, and view it on SubQuery Explorer. There you can use the in browser playground to get started.

Well done! You now have everything in place to create fast, scalable, data-rich dApps on ZetaChain.

Need help? Contact [email protected]