# Getting Started

In the world of Solana development, a crucial tool in our toolkit is the **Anchor IDL**. It's like a guidebook that tells us what accounts a program has and how they're structured. This information is gold because it helps us automate indexing pipelines. Think of it as the key piece in the puzzle that lets us understand and handle a program's accounts effectively.

{% hint style="info" %}
Reach out to us on [Discord](https://discord.com/invite/8JyZCjRPmr) to get a program indexed.
{% endhint %}

> We have also created a [graphQL demo project](https://github.com/Shyft-to/community-projects/tree/main/graphql-demo) for you to easily get started.

#### **Step 1**

GraphQL API lets you access both **mainnet** and **devnet** program data. It can be accessed from the below URLs.

* **Mainnet**: <mark style="color:yellow;"><https://programs.shyft.to/v0/graphql/?api\\_key={your-key}\\&network=mainnet-beta></mark>
* **Devnet**: <mark style="color:yellow;"><https://programs.shyft.to/v0/graphql/?api\\_key={your-key}\\&network=devnet></mark>

#### Step 2

It is necessary to see the **schema of the programs and the fields** that we have indexed, so you can build queries based on that. The above URL works with any GraphQL client. Here are a few popular ones.

* <https://cloud.hasura.io/public/graphiql>
* <https://studio.apollographql.com/sandbox/explorer/>

Once you paste your GraphQL endpoint in the above UI, it will automatically trigger an **introspection** call which will fetch the entire schema for all the programs that we currently host.

Each account follows **programID\_accountName** structure, so for example if you want to query **ProposalsV2** account for **spl-governance**. You would be looking at <mark style="color:yellow;">**GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw\_ProposalV2.**</mark>

<figure><img src="/files/gVc5xmldqo3hgnaDS3Ah" alt=""><figcaption></figcaption></figure>

Now you are ready to start building queries and creating experiences that were unheard of before, on Solana.


---

# 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.shyft.to/solana-indexers/graphql-apis/getting-started.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.
