# Subgraphs

## Authentication

### The Graph Network <a href="#the-graph-network" id="the-graph-network"></a>

The Graph Protocol is a decentralised network that serves API requests through its distributed network of indexers. Graph queries are constructed using GraphQL, which allows a high degree of flexibility for the caller. This combination ensures that responses are accurate and fast, and the requests are highly customizable.

### Billing <a href="#billing" id="billing"></a>

In order to obtain your API key, you must first connect your wallet to the Graph and charge your balance with GRT tokens. This can also be accomplished by paying with a card at [https://thegraph.com/studio/billing/(opens in a new tab)](https://thegraph.com/studio/billing/). To avoid exposure to market fluctuations, you have the option to peg your tokens to a stablecoin.

### Pricing Structure <a href="#pricing-structure" id="pricing-structure"></a>

You might consider using Arbitrum for payments, as the fees are significantly cheaper. The Graph charges a variable rate per request, which can be adjusted according to your needs. If you require higher quality responses, you can choose to pay a higher rate.

### &#x20;<a href="#getting-your-api-key" id="getting-your-api-key"></a>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.uncx.network/guides/for-developers/subgraphs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
