This guide explains what a consumer is and includes the necessary steps to become one. It also gives you an insight the benefits of becoming a consumer.
Why Become a Consumer?
As a Consumer, you can get indexed data by entering into an agreement with an Indexer. In return, you can query the data you need quickly for your dApps, thereby saving you time figuring out how to get blockchain data yourself.
Begin your journey as a consumer by creating an offer. Follow any of these two methods:
- Create your own offer
- Purchase an Indexer's plan
Before you create or purchase your first offer on SubQuery's Frontier Testnet, you must connect with MetaMask. Follow these guided steps and connect with MetaMask.
Method-1. Create Your Own Offer
Method-2. Purchase an Indexer's Plan
How to make a use of your purchased plan and indexed data?
Playground is the place where you can run the readily available query(from any of your purchased plans). You can directly run or test the code right there and retrieve the data.
Once you have purchased an offer using any of the above methods, head to
Plan & Offer->
My Service Agreementstab.
Ongoingtab, you will see a list of service agreements for respective purchased plans. Select the playground of your preferred plan in the last column
You will be redirected to a page, known as the Playground.
You will then see a code that you can directly use as the query and get the chain data for your project. You can also modify this query as per your requirements and retrieve the data in the desired format.
You can visit the expired plan's service agreement under the
Get a Service Agreement from an Indexer
Cancel an Offer Before It Expires
Withdraw SQT locked in an Offer After It Expires