| name | algorand-typescript |
| description | Comprehensive guide for Algorand TypeScript (PuyaTs) smart contract development — syntax rules, migration, testing, deployment, React frontends, AlgoKit Utils, ARC standards, and troubleshooting. This is the parent skill for all TypeScript-specific Algorand content. Use when writing TypeScript contract code, encountering Puya compiler errors, migrating from TEALScript or beta, testing contracts with Vitest, deploying with typed clients, building React frontends, or using AlgoKit Utils in TypeScript. Strong triggers include "Puya compiler error", "uint64", "clone()", "BoxMap", ".algo.ts", "migrate from TEALScript", "algorandFixture", "vitest", "deploy contract", "call method", "React frontend", "use-wallet", "AlgorandClient TypeScript", "npm install algokit-utils". |
Algorand TypeScript
This is the aggregated parent skill for all TypeScript-specific Algorand development. Use the reference files below to find detailed guidance for each topic.
Quick Start
algokit init -n my-project -t typescript --answer preset_name production --defaults
npm install @algorandfoundation/algokit-utils
algokit project run build
algokit project run test
Key TypeScript Rule
Contract files must use .algo.ts extension. Use AVM types (uint64, bytes), never JavaScript number. Always clone() complex types.
Reference Guide
Navigate to the appropriate reference based on your task. Each topic has one or more files.
Algorand TypeScript Syntax
Critical syntax rules for Algorand TypeScript (PuyaTs) that prevent compiler errors.
Migration to Algorand TypeScript 1.0
Migrate from TEALScript or Algorand TypeScript Beta to 1.0.
Testing Smart Contracts
Write integration and unit tests using algorandFixture and Vitest.
Calling Smart Contracts
Deploy and interact with contracts using generated TypeScript clients.
React Frontends
Build React frontends with wallet integration and typed contract clients.
Creating TypeScript Projects
Initialize TypeScript AlgoKit projects with proper templates and presets.
Building Smart Contracts (TypeScript)
TypeScript-specific contract building with PuyaTs.
AlgoKit Utils (TypeScript)
Interact with Algorand from TypeScript applications.
Implementing ARC Standards (TypeScript)
TypeScript implementations of ARC-4, ARC-32, and ARC-56.
Troubleshooting Errors (TypeScript)
TypeScript-specific error diagnosis and fixes.
Topic Quick Reference
| Topic | Files | Description |
|---|
| Syntax Rules | 6 | PuyaTs types, storage, methods, transactions |
| Migration | 3 | TEALScript and beta migration guides |
| Testing | 3 | Vitest integration and unit tests |
| Calling Contracts | 2 | Deployment and typed client interaction |
| React Frontends | 3 | Wallet integration and dApp UI |
| Create Project | 2 | TypeScript template initialization |
| Build Contracts | 2 | TypeScript-focused contract building |
| AlgoKit Utils | 2 | AlgorandClient TypeScript API |
| ARC Standards | 3 | TypeScript ARC implementations |
| Troubleshoot | 3 | TypeScript error fixes |
How to Use This Skill
- Start here to understand which reference you need
- Read the topic
.md file for step-by-step guidance
- Consult detail files for specific subtopics (syntax, examples, reference)
- For language-agnostic content (CLI, ARC specs, general workflows), see the
algorand-development parent skill