The Graph to use Polygon for its billing system

With the biggest brains in the blockchain industry working with Polygon, the network has quickly become a popular go-to platform for developers, thanks to Polygon SDK, a modular and extensible framework, EVM compatible, and secure infrastructure. Polygon’s high-performance and scalable infrastructure provide a viable platform for developer-focused projects to facilitate large-scale adoption. Similarly, in the blockchain data indexing and query space, The Graph has become the preferred solution for building decentralized applications quickly on Ethereum and IPFS, with over 20,000 active developers for major blue-chip Web3 applications.

We’re thrilled to announce that The Graph is expanding its use case on Polygon with the launch of its billing contract for Subgraph Studio on Polygon.

Subgraph Studio allows developers to build, test and deploy subgraphs, and manage their API keys. Developers will be required to pay fees charged to API keys. Subgraph Studio fee invoices are generated weekly in the system.

The Graph is building its billing technology on Polygon to enable near-instant and low-cost transactions for both its users and developers alike. Now developers can seamlessly use The Graph to query data and create dApps leveraging its products without worrying about hefty transaction fees.

If you’re having any questions related to Subgraph Studio and billing, we’ve got you covered:

What is Subgraph Studio?

Subgraph Studio enables developers to build and create subgraphs, add metadata, and publish them to the new decentralized Explorer.

In Subgraph Studio, developers get complete control over their subgraphs, they can test their subgraphs before publishing them, and it also allows developers to restrict API keys to specific domains.

What can developers do in Subgraph Studio?

The Studio empowers developers to build better subgraphs to power their or their community’s queries.

  • Create, publish, and deploy subgraphs using the CLI
  • Test it in the playground
  • Integrate it in staging using the query URL
  • Create and manage your API keys for specific subgraphs

How does billing on Subgraph Studio work?

When a developer queries subgraphs, it generates query fees, used to reward indexers on The Graph network. Developers or users will be required to pay fees based on the queries generated using their API keys.

The billing contract is currently live on Polygon with the following features:

  • It allows users to add and remove GRT
  • It keeps track of GRT balance and invoices
  • It automatically clear payments based on query fees generated

How frequently are invoices generated?

The invoices are generated on a weekly basis.

How to pay invoices on Subgraph Studios using Polygon?

To pay invoices on Subgraph Studios with the Polygon bridge, the user will need to go through the following steps:

Step 1: You must have GRT and ETH in your wallet to process the billing.

Step 2: Once you have GRT and ETH in your wallet, you can bridge GRT to Polygon using the UI.

Step 3: You will receive 0.001 Matic in a few minutes after sending any amount of GRT to the Polygon bridge.

Step 4: Now add bridged GRT to the billing contract on Polygon. The billing contract address is: 0xa382f75b375d6a07bfd1af99d4383c6e1d1c4004.

Step 5: To add bridged GRT to the billing contract on Polygon, you need to switch your wallet’s network to Matic Mainnet and process your bill payment.

How to go through the invoicing process?

The invoice process will have four possible stages, that can be:

  1. Created — When an invoice is generated but not paid yet
  2. Paid — When the invoice is paid successfully
  3. Unpaid — When you don’t have enough GRT
  4. Error — When there is an error processing the payment

Here’s a quick demo of how billing works on Subgraph Studio:

About The Graph

The Graph is the indexing and query layer of the decentralized web. Developers build and publish open APIs, called subgraphs, that applications can query using GraphQL. The Graph currently supports indexing data from Ethereum, IPFS, and PoA, with more networks coming soon. To date, over 18,000 subgraphs have been deployed by over 20,000 developers for applications, such as Uniswap, Synthetix, Gnosis, Balancer, Livepeer, DAOstack, Foundation, Zora, Decentraland, and many others. If you are a developer building an application or Web3 application, you can use subgraphs for indexing and querying data from blockchains. The Graph allows applications to efficiently and performantly present data in a UI and allows other developers to use your subgraph too! You can deploy a subgraph or query existing subgraphs that are in Graph Explorer. The Graph would love to welcome you to be IndexersCurators, and/or Delegators on The Graph’s mainnet. Join The Graph community by introducing yourself in The Graph Discord for technical discussions, join The Graph’s Telegram chat, or follow The Graph on Twitter! The Graph’s developers and members of the community are always eager to chat with you, and The Graph ecosystem has a growing community of developers who support each other.

The Graph Foundation oversees The Graph Network. The Graph Foundation is overseen by the Technical CouncilEdge & Node and StreamingFast are three of the many organizations within The Graph ecosystem.

Website | Twitter | Telegram

About Polygon

Polygon is the first well-structured, easy-to-use platform for Ethereum scaling and infrastructure development. Its core component is Polygon SDK, a modular, flexible framework that supports building and connecting Secured Chains like Plasma, Optimistic Rollups, zkRollups, Validium, etc, and Standalone Chains like Polygon POS, designed for flexibility and independence. Polygon’s scaling solutions have seen widespread adoption with 450+ Dapps, ~350M txns, and ~13.5M+ unique users.

If you’re an Ethereum Developer, you’re already a Polygon developer! Leverage Polygon’s fast and secure txns for your Dapp, get started here.

Website | Twitter | Ecosystem Twitter | Studios Twitter | Reddit | Discord | Telegram

More from the Polygon Blog
The Many Lives of Tokens

Tokens are the élan vital of Web3 networks, and projects are often perceived through the price at which they trade. But token price, subject to market sentiment and speculation, is not synonymous with token value. To understand the fundamentals, we must first unpack the different ways that value accrues to tokens in the new Internet […]

Read More
Going Beyond the Green Manifesto: Our New Impact Commitment 

With Ethereum’s Merge finally upon us, we’ve been thinking about how this historic milestone will affect our sustainability efforts. Polygon’s initial commitment to become carbon neutral and eventually carbon negative was largely addressing emissions generated by our relationship with Ethereum. The Merge dramatically changes that equation. Ethereum’s transition from Proof-of-Work to Proof-of-Stake consensus, known as […]

Read More
Starbucks Taps Polygon for Its 'Starbucks® Odyssey' Web3 Experience 

Today, we are thrilled to announce that Starbucks Coffee Company is working with Polygon to provide the blockchain technology to build its recently announced Web3 experience, Starbucks Odyssey. As a result of the partnership, this new Web3-powered experience will allow Starbucks Rewards loyalty program members and Starbucks partners (employees) in the United States to earn […]

Read More
Polygon Avail’s Ability to Scale: What We Can Improve Next

The Polygon Avail Testnet is now live. As users begin incorporating Avail into their chain designs, a question that often comes up is, “How many transactions can Avail process?” This is Part Two in a three-part series of articles that will address Polygon Avail’s current performance, as well as its ability to scale in the […]

Read More
Ethereum Merge FAQ and Common Misconceptions

Ethereum’s much-anticipated transition to the proof of stake (PoS) consensus, known as the Merge, is almost upon us. It’s a momentous event with broad-ranging implications for the greater Ethereum ecosystem. So we wanted to provide a definitive list of frequently asked questions (and answers) as well as address some of the common misconceptions, both of […]

Read More
Polygon-Powered Icetea Labs Accelerator Launches With 6 Startups

Polygon has teamed up with Alpha Venture DAO and Icetea Labs to launch the inaugural Icetea Labs Accelerator Program for blockchain startups.  Working in a tight three-way partnership, Polygon is co-creating an accelerator to funnel resources, mentorship, education, and business acumen to promising Web3 companies from around the world. The startups selected for the accelerator […]

Read More
Apply to Polygon Bootcamp Africa and Kickstart Your Web3 Developer Journey

Applications are open for Polygon Bootcamp Africa, launched in partnership with Xend Finance! The eight-week intensive educational course and hackathon combo will put developers in Africa on the Web3 map.  This is Polygon’s biggest step in providing resources to developers, builders, and creators in Africa, and it comes during an important time.  An internet and […]

Read More
ZK White Paper: Efficient ZK Proofs for Keccak

As part of our ongoing efforts to inform the Ethereum community about the efforts of Polygon’s zero-knowledge (ZK) teams, we will be posting a series of technical papers by our engineers and researchers. We hope that everyone who’s interested in the inner workings of Polygon’s ZK projects, Ethereum itself, and cryptographic engineering in general will […]

Read More
crossmenuchevron-down-circle