use-ts-sdk
Use TypeScript SDK (Orchestrator)
Purpose
Orchestrates @aptos-labs/ts-sdk integration for Aptos dApps. For specific tasks, route to the appropriate granular
skill. For composite tasks (e.g., "build me a fullstack dApp"), follow the workflow below.
Core Rules
- ALWAYS use
@aptos-labs/ts-sdk(the current official SDK, NOT the deprecatedaptospackage) - NEVER hardcode private keys in source code or frontend bundles
- NEVER expose private keys in client-side code or logs
- NEVER store private keys in environment variables accessible to the browser (use
VITE_prefix only for public config) - ALWAYS load private keys from environment variables in server-side scripts only, using
process.env
Important: Boilerplate Template
If the project was scaffolded with npx create-aptos-dapp (boilerplate template), **wallet adapter and SDK setup are
More from aptos-labs/aptos-agent-skills
ts-sdk-client
How to create and configure the Aptos client (Aptos, AptosConfig) in @aptos-labs/ts-sdk. Covers Network,
33ts-sdk-account
How to create and use Account (signer) in @aptos-labs/ts-sdk. Covers Account.generate(), fromPrivateKey(),
33security-audit
Audits Move contracts for security vulnerabilities before deployment using 7-category checklist. Triggers on: 'audit
33ts-sdk-wallet-adapter
How to integrate wallet connection in React frontends using @aptos-labs/wallet-adapter-react. Covers
33ts-sdk-transactions
How to build, sign, submit, and simulate transactions in @aptos-labs/ts-sdk. Covers build.simple(),
32ts-sdk-address
How to create and use AccountAddress in @aptos-labs/ts-sdk. Covers address format (AIP-40),
31