Installation
The Alpha SDK is distributed as an npm package. It requires two peer dependencies:algosdk for Algorand blockchain interaction and @algorandfoundation/algokit-utils for transaction utilities.
Package Managers
Install the SDK and peer dependencies using your preferred package manager:Dependencies
Required Peer Dependencies
These packages must be installed alongside the SDK:| Package | Version | Purpose |
|---|---|---|
algosdk | ^3.5.2 | Algorand client library — handles blockchain communication, transaction signing, and account management |
@algorandfoundation/algokit-utils | ^9.2.0 | AlgoKit utilities — provides transaction composition and smart contract interaction helpers |
Included Dependencies
The SDK automatically includes:| Package | Version | Purpose |
|---|---|---|
decimal.js | ^10.4.3 | High-precision decimal arithmetic for price and quantity calculations |
The SDK is published as an ESM and CommonJS hybrid module. It works in both Node.js and modern bundlers (Webpack, Vite, etc.).
Version Requirements
- Node.js: 18.x or higher recommended
- TypeScript: 5.0+ (if using TypeScript)
- Algorand SDK: The SDK requires
algosdkv3.5.2 or higher
Verify Installation
Check that the SDK is correctly installed:TypeScript Configuration
If you’re using TypeScript, ensure yourtsconfig.json has ESM support:
tsconfig.json
Import Syntax
The SDK uses named exports. Import theAlphaClient and any utility functions you need:
ESM (Recommended)
CommonJS
Environment Setup
For development, create a.env file to store sensitive data:
.env
Optional: Get an API Key
An API key unlocks enhanced features like market metadata, liquidity rewards, and cross-market order lookups.Sign Up
Go to alphaarcade.com and create an account using email or Google.
The API key is completely optional. The SDK works without it — you’ll just have access to on-chain data only (no images, categories, or volume stats).
Next Steps
Quick Start
Learn how to initialize the client and place your first order
