For AI agents: an LLM-friendly Markdown version of every page is available by appending .md to its URL or by sending an Accept: text/markdown request header. The full documentation index is at https://www.ankr.com/docs/llms.txt
Skip to main content

Aptos


Aptos API is available on Web3 API platform.

The Aptos blockchain, designed with scalability, safety, reliability, and upgradability as key principles, to address blockchain challenges, such as frequent outages, high costs, low throughput limits, and security concerns. The Aptos blockchain has been developed over the past three years by over 350+ developers across the globe. It offers new and novel innovations in consensus, smart contract design, system security, performance, and decentralization. The combination of these technologies will provide a fundamental building block to bring web3 to the masses.

In order for your Web3 application to interact with the Aptos blockchain — either by reading blockchain data or sending transactions to the network — it must connect to an Aptos node. Developers interact with the blockchain using the methods provided by the API.

Aptos API uses the REST interface for querying, responses come in JSON format.

Methods supported

Accounts:

  • Get account — retrieves the authentication key and the sequence number for an account address.
  • Get account resources — retrieves all account resources for a given account and a specific ledger version.
  • Get account modules — retrieves all account modules' bytecode for a given account at a specific ledger version.
  • Get account resource — retrieves an individual resource from a given account and at a specific ledger version.
  • Get account module — retrieves an individual module from a given account and at a specific ledger version.

Blocks:

  • Get blocks by height — retrieves the transactions in a block and the corresponding block information.
  • Get blocks by version — retrieves the transactions in a block and the corresponding block information by version in the block.

Events:

General:

Table:

Transactions:

View:


Methods

Accounts, Blocks, Events, General, Table, Transactions

Transactions, View