# Credit Data

Because all ICR credits are issued on a public blockchain (currently only on Polygon) you don't need ICR's permission to query / explore / use ICR credit data. You can get the data permissionlessly. There are at least two ways you can get the data.

1. We have a [subgraph](https://thegraph.com/hosted-service/subgraph/skjaldbaka17/carbon-registry-polygon) created using [theGraph](https://thegraph.com/) ([testnet subgraph](https://thegraph.com/hosted-service/subgraph/skjaldbaka17/carbon-registry-test) - [mainnet test contracts subgraph](https://thegraph.com/hosted-service/subgraph/skjaldbaka17/carbon-registry-main-test)) which anyone can use to get information on the state of ICR credits. The subgraph is both queryable via applications / servers and searchable via the hosted graph ui (see the link before). Developers can use the indexed data to get the most important onchain data for each credit, like supply, serialization, retirements, cancellations, estimated mitigations etc.
2. You can use a blockchain provider of your choice (for example [alchemy](https://www.alchemy.com/) / [infura](https://www.infura.io/)) and then use either their SDKs (if your provider has one) or use ethers / web3 to query the onchain contracts and historical events. See the ICR contracts [here](/documentation/carbonregistry.com/on-chain/contracts.md).


---

# 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://documentation.carbonregistry.com/documentation/carbonregistry.com/on-chain/credit-data.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.
