# Subgraph

PNS has a GraphQL API Endpoint hosted by [Graph](https://graph.pulse.domains) called a subgraph for indexing and organizing data from the PNS smart contracts.

This subgraph can be used to query PNS data.

Subgraph information is serviced by a decentralized group of server operators called Indexers.

## GraphQL Schema

The schema of GraphQL elements available is defined in [`/schema.graphql`](https://github.com/ensdomains/ens-subgraph/blob/master/schema.graphql)

## PulseChain Mainnet

* [Explorer Page](https://graph.pulse.domains/subgraphs/name/graphprotocol/pns/graphql)
* [Github Repo](https://github.com/pulsedomains/pns-subgraph-v3)

## PulseChain Testnet

* [Explorer Page](https://v4b.graph.pulse.domains/subgraphs/name/graphprotocol/tpns)

## Helpful Links

[Querying from an Application](https://thegraph.com/docs/en/developer/querying-from-your-app/)


---

# 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.pulse.domains/contract-api-reference/subgraph.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.
