aptos

Develop Aptos Move modules, manage coins and Token V2 assets, and interact via the TypeScript SDK.

6|20|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/andresdefi/cryptoskills --skill aptos-andresdefi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aptos
Source: https://github.com/andresdefi/cryptoskills/tree/main/skills/aptos
Command: npx skills add https://github.com/andresdefi/cryptoskills --skill aptos-andresdefi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents frequently generate incorrect Aptos code by confusing it with Sui Move or Solidity patterns — wrong storage models, deprecated SDK packages, deprecated Token V1 APIs, and hallucinated coin addresses. This Skill provides verified chain configuration, correct Move module patterns, current SDK usage, and on-chain reference data for Aptos development. ## Core Features & Use Cases - Move Module Development: Write modules using global storage operations (move_to, borrow_global), resource accounts, events, access control, and Block-STM-friendly per-user state patterns. - Coin and Token V2 Standards: Create custom coins with the Coin standard and NFT collections with the Digital Assets (Token V2) object model, including mint, burn, and royalty configuration. - TypeScript SDK Integration: Transfer APT, call entry and view functions, estimate gas via simulation, handle multi-agent transactions, and query the GraphQL indexer using @aptos-labs/ts-sdk. - Use Case: Deploy a vault module to testnet, then use the SDK to deposit APT, read user balances via view functions, and decode abort codes when transactions fail. ## Quick Start Ask the agent to write and deploy an Aptos Move counter module to testnet and then query its value with a view function using the TypeScript SDK.

Frequently Asked Questions about aptos

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a Move module on Aptos?

Define a module with structs using the key ability, store them at signer addresses with move_to, and read them with borrow_global. Functions that access global storage need an acquires annotation, and read-only functions use the #[view] attribute for off-chain calls.

How do I transfer APT with the Aptos TypeScript SDK?

Use @aptos-labs/ts-sdk to build a simple transaction calling 0x1::aptos_account::transfer with the recipient address and amount in octas. Sign and submit with aptos.signAndSubmitTransaction, then wait for confirmation with waitForTransaction.

What is the difference between Aptos Coin standard and Fungible Asset?

The Coin standard uses generic type parameters and requires accounts to register a CoinStore before receiving funds. Fungible Asset uses the object model with auto-created primary stores, and new projects should prefer it, though APT supports both interfaces.

Is the aptos npm package still supported?

No, the aptos npm package is deprecated. Use @aptos-labs/ts-sdk instead, initializing a client with new Aptos(new AptosConfig({ network: Network.MAINNET })).

Why does my Aptos transaction fail with ECOIN_STORE_NOT_PUBLISHED?

The recipient account has not registered for that coin type. Either call coin::register first or use aptos_account::transfer_coins, which automatically registers the recipient during the transfer.

How does Block-STM affect Move contract design on Aptos?

Block-STM executes transactions in parallel and re-executes on conflicts, so contracts with a single global resource that every transaction writes to will serialize. Design with per-user resources instead of global counters to preserve parallel execution.