Indexer
We have several offerings for getting indexed data from the Aptos blockchain.
- Query the Indexer API to get basic data about transactions, fungible assets, and tokens
- Index your custom contract with the Indexer SDK
- Stream raw transactions from Transaction Stream Service to your processor or service
Indexer API
Section titled “Indexer API”The Aptos Indexer is an API you can use to get:
- Aggregate data (ex. How many NFTs exist?)
- Historical data (ex. What transactions has this account submitted?)
- 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:
Using the Indexer API
Section titled “Using the Indexer API”Learn how to use the Indexer API, what each table represents, and the architecture.
Example Queries
Section titled “Example Queries”To help get you started, here are the most common queries the Indexer is used for.
Indexer SDK
Section titled “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
Section titled “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
Section titled “Legacy Indexer”Find information about the legacy indexer here.