# Indexer

Most applications **require** an indexer to efficiently query for on-chain state as the [Movement Node API](https://mevm.devnet.imola.movementlabs.xyz) provides only a basic, stable API and does not support data shaping required for rich user experiences. The LYNC Indexer on Movement processes raw blockchain data for app-specific needs, enabling low-latency and enhanced experiences for end-user applications.

Here’s an example of how you can query for the Current Coin Balances of an account. More usage examples can be found in example queries.

{% embed url="<https://youtu.be/LUf3xLoBa3E>" %}
How to run your own Indexer on MEVM
{% endembed %}

## Get an NFT Data

Base URL: <https://mevm-devnet.lync.world/subgraphs/name/mevm>

<mark style="color:green;">`POST`</mark> `/getNftBalances`

### [Playground for the GraphQL Query:](https://mevm-devnet.lync.world/subgraphs/name/mevm/graphql?query=%7B%0A++getNftBalances%28first%3A100%29+%7B%0A++++id%0A++++owner%0A++++amount%0A++++nft+%7B%0A++++++id%0A++++++contractAddress%0A++++++name%0A++++++symbol%0A++++%7D%0A++%7D%0A%7D)

{% embed url="<https://mevm-devnet.lync.world/subgraphs/name/mevm/graphql?query={++getNftBalances+{++++id++++owner++++amount++++nft+{++++++id++++++contractAddress++++++name++++++symbol++++}++}}>" %}
Get NFT Data GraphQL Query
{% endembed %}

GraphQL Query:

The graphQL query is it fetch all the NFTs  and it's data (including ERC-721 and ERC-1155)

```graphql
{
  getNftBalances(first:100) {
    id
    owner
    amount
    nft {
      id
      contractAddress
      name
      symbol
    }
  }
}
```


---

# 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://lync-1.gitbook.io/lync/movement-labs/indexer.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.
