Aptos APIs
The Aptos Blockchain network can be accessed by several APIs, depending on your use-case.
-
Aptos Fullnode-embedded REST API.
This API - embedded into Fullnodes - provides a simple, low latency, yet low-level way of reading state and submitting transactions to the Aptos Blockchain. It also supports transaction simulation.
-
Aptos Indexer-powered GraphQL API.
This API provides a high-level, opinionated GraphQL API to read state from the Aptos Blockchain. If your app needs to interact with high level constructs, such as NFTs, Aptos Objects or custom Move contracts, you likely want to incorporate the Aptos GraphQL Indexer API in some fashion. Learn more about the Indexer-powered GraphQL API here.
-
Aptos GRPC Transaction Stream API
This API provides a way to stream historical and current transaction data in real-time to an indexing processor. This API is used by the Aptos Core Indexing infrastructure itself but also can be used to build app-specific custom indexing processors that process blockchain data in real-time. Learn more here.
-
Faucet API (Only Testnet/Devnet)
This API provides the ability to receive test tokens on devnet and testnet. Its primary purpose is the development and testing of applications and Move contracts before deploying them to mainnet.
The code of each of the above-mentioned APIs is open-sourced on GitHub. As such anyone can operate these APIs and many independent operators and builders worldwide choose to do so.
Aptos Labs operated API Deployments
Aptos Labs operates a deployment of these APIs on behalf of Aptos Foundation for each Aptos Network and makes them available for public consumption.
At the moment there are 2 sets of Aptos Labs API deployments: