Skip to content
🎉 Welcome to the new Aptos Docs! Click here to submit an issue.
BuildIndexer

Indexer

We have several offerings for getting indexed data from the Aptos blockchain.

  1. Query the Indexer API to get basic data about transactions, fungible assets, and tokens
  2. Index your custom contract with the Indexer SDK
  3. Stream raw transactions from Transaction Stream Service to your processor or service

Indexer API

The Aptos Indexer is an API you can use to get:

  1. Aggregate data (ex. How many NFTs exist?)
  2. Historical data (ex. What transactions has this account submitted?)
  3. Data that is hard to get from the simpler Aptos Node API (ex. What account owns a token named “ExampleToken”?).

For example, you can use the Indexer API to look up the fungible asset balances of any account like so:

Loading...

The Indexer tracks every transaction that happens on-chain, then exposes that data through a GraphQL API.

Using the Indexer API

Learn how to use the Indexer API, what each table represents, and the architecture.

Example Queries

To help get you started, here are the most common queries the Indexer is used for.

Indexer SDK

If the hosted Indexer API is not enough or if you want to index your custom contract, you can create a processor with the Indexer SDK.

Transaction Stream Service

Transaction Stream Service is a GRPC service that streams raw transactions to your processor or service. If you’re using the Indexer SDK, you’ll need an authorization token to connect to Transaction Stream Service.

Legacy Indexer

Find information about the legacy indexer here.