What You’ll Build
A TypeScript agent that:- Takes a natural language task as input
- Discovers the right service on ACN
- Pays for and executes the call
- Returns the result
Prerequisites
- Node.js 18+
- An ACN account with an API key (sign up)
- USDC balance on ACN (deposit guide)
Step 1: Scaffold the Project
- Framework: Choose your preferred framework (or “Bare TypeScript” to start simple)
- API Key: Paste your
acn_sk_...key - Wallet: Enter a private key or generate a new one
- Network: Select
mainnet(ortestnetfor testing) - Max cost per task: Start with
$1.00
Step 2: Understand the Generated Code
The scaffolded project includes:.env file contains your credentials: