Aptos Developer Documentation

website·Indexed 35 days ago

https://aptos.dev/

Developer resources for building on the Aptos blockchain, featuring guides for the Move programming language, official SDKs for TypeScript, Python, Go, and Rust, and API references for Fullnode REST and Indexer GraphQL. Includes technical documentation on accounts, transactions, smart contracts, and AI integration tools like the Aptos Model Context Protocol (MCP) and Agent Skills.

Tokens
258.4K
Snippets
1.1K
Records
1.7K
Agent score
74%

What's inside Aptos

  1. Overview of SmartVector in Aptos Move

    The SmartVector is a scalable vector implementation based on tables, where elements are grouped into buckets. It is designed to handle large data sets efficiently by combining a small inline vector for low-volume data with a scalable structure for larger volumes.

    Internal Structure:

    • inline_vec: A small vector storing elements directly.
    • big_vec: An optional large vector for scalable storage.
    • inline_capacity: Defines the capacity of the inline_vec.
    • bucket_size: Defines the size of buckets within the big_vec.
  2. Overview of Orderless Transactions (AIP-123)

    Orderless transactions (introduced in AIP-123) use a nonce for replay protection instead of a sequence number. This allows transactions to execute in any order and removes the requirement for an on-chain 0x1::account::Account resource. They are particularly useful for clients submitting transactions from multiple machines without needing to coordinate a sequence number.
  3. Overview of the Aptos Genesis Ceremony

    The genesis ceremony is the process of bootstrapping a new Aptos blockchain. It produces a set of Move instructions that prepare the blockchain for online operation. The process requires a set of validators and their configurations, an initial set of Move modules (the framework), and a unique ChainId (u8) to distinguish the network from others.
  4. Overview of Aptos Delegated Staking

    Delegated staking allows multiple entities to form a stake pool to meet the minimum requirements for a validator to join the validator set without requiring the pool owner to personally stake. A delegation pool abstracts the stake owner and is managed via a resource account that forwards stake-management operations (add, unlock, reactivate, withdraw) on behalf of delegators. Delegation pools are permissionless and can be initialized with zero stake, but they do not earn rewards until they become active.
  5. Overview of Aptos Account Abstraction

    Account Abstraction (AA) on Aptos allows accounts to define custom transaction authentication rules through Move modules. This enables authentication logic beyond native cryptographic schemes. As of July 17, 2025, this feature is live on testnet.
  6. Overview of Aptos Keyless accounts

    Aptos Keyless allows users to create and own self-custodial blockchain accounts using OpenID Connect (OIDC) authentication (such as 'Sign in with Google' or 'Sign in with Apple') instead of managing traditional secret keys or mnemonics. In this paradigm, a user's blockchain account is tied to their OIDC account, and transactions are signed using the JSON Web Token (JWT) issued by the OIDC provider.
  7. Overview of Aptos Indexer SDK Steps

    A step is a unit of processing logic within the Aptos Indexer SDK used for extracting, transforming, or storing data. Steps serve as the building blocks of a processor. A typical core processor consists of steps for streaming transactions, extracting data, writing to a database, and tracking progress.

    There are two primary types of steps:

    1. AsyncStep: Processes a batch of input items and returns a batch of output items.
    2. PollableAsyncStep: Functions like an AsyncStep but additionally polls its internal state periodically to return output items if available.
  8. Overview of Aptos database bootstrapping from backups

    Aptos nodes (including validators, VFNs, and PFNs) can be bootstrapped using public backup files to quickly start a new/failed node or recover historical data. Backups consist of three data types: epoch_ending (ledger_info for epoch provenance), state_snapshot (SMT and key values at a specific version), and transaction (raw metadata, payloads, VM outputs, and cryptographic proofs). Backups are available for Mainnet and Testnet via AWS S3 and Google Cloud Storage.
  9. Overview of Aptos Localnet for development

    Aptos Localnet allows developers to run a local development network using the Aptos CLI. It provides a self-contained environment including the Node API, Indexer API, transaction stream, and faucet services. Localnet is preferred over public testnets for three primary reasons: it removes rate limits on hosted services, allows for reproducible on-chain scenarios by restarting the network to a clean slate, and ensures high availability regardless of internet connectivity or public network upgrades.
  10. Overview of Aptos Developer Tooling

    Aptos provides several primary tools for developers to interact with the blockchain and build applications:

    • Aptos CLI: Used to compile and profile Move smart contracts and manage a local network.
    • SDKs: Available in TypeScript, Python, Go, and Rust for submitting transactions and reading on-chain data.
    • Aptos Indexer: Used to efficiently query on-chain data such as account balances, historical transactions, and NFTs by account.
  11. Overview of Aptos Indexer Processor components

    Creating and running a custom processor with the Aptos Indexer SDK requires four primary components:

    1. IndexerProcessorConfig: Base configuration shared across processors (e.g., database and Transaction Stream settings).
    2. ProcessorConfig: An enum used to map specific processor names to their respective configurations.
    3. The Processor: A struct implementing the ProcessorTrait that defines the indexing logic and data pipeline.
    4. main.rs: The entry point that bootstraps the server and executes the processor.
  12. Overview of Aptos Model Context Protocol (MCP) Server

    The Aptos MCP server (npx @aptos-labs/aptos-mcp) provides tools, prompts, and resources for developers building on the Aptos blockchain through Geomi. It is compatible with any AI tool that supports the Model Context Protocol (MCP), including Cursor, Claude Code, and OpenAI Codex.
    npx -y @aptos-labs/aptos-mcp