- ai
- blockchain infrastructure
Automated Query Pricing in The Graph
Indexers in The Graph have control over the pricing of the GraphQL queries they serve based on their shape. For this task, The Graph created a domain-specific language called Agora that maps query shapes to prices in GRT. However, manually populating and updating Agora models for each subgraph is a tedious task, and as a consequence, most indexers default to a static, flat pricing model._ _To help indexers with pricing in the relative resource cost of serving different query shapes, as well as following the query market price, we are developing AutoAgora, an automation tool that automatically creates and updates Agora models._ _See our related Devcon 2022 talk here:_ _[https://www.youtube.com/watch?v=LRl9uFfmjEs](https://www.youtube.com/watch?v=LRl9uFfmjEs)_.