Aptos ts sdk

From eric861129/SKILLS_All-in-one · View interactive version

Aptos ts sdk is an AI agent skill from the GitHub repository eric861129/SKILLS_All-in-one. Expert in Aptos TypeScript SDK (v2). Build frontend applications, manage accounts, submit transactions, and query the Aptos Indexer.

How to use this skill

Skill file

Aptos TypeScript SDK Expert

Expertise in building applications using the Aptos TypeScript SDK (v2).

When to Use

Core Concepts

Client Initialization

import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";

const config = new AptosConfig({ network: Network.TESTNET });
const aptos = new Aptos(config);

Transaction Submission

const transaction = await aptos.transaction.build.simple({
  sender: alice.accountAddress,
  data: {
    function: "0x1::coin::transfer",
    typeArguments: ["0x1::aptos_coin::AptosCoin"],
    functionArguments: [bobAddress, 100],
  },
});

const pendingTxn = await aptos.signAndSubmitTransaction({
  signer: alice,
  transaction,
});

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.