Installation
Using npm
npm install @fatsolutions/tongo-sdk
Using pnpm
pnpm add @fatsolutions/tongo-sdk
Using yarn
yarn add @fatsolutions/tongo-sdk
Peer Dependencies
The Tongo SDK requires Starknet.js as a peer dependency. If you don't have it installed:
npm install starknet
Version Compatibility
| Tongo SDK | Starknet.js | Node.js |
|---|---|---|
| 1.2.0 | ^8.0.0 | >=18 |
TypeScript Support
The SDK is written in TypeScript and includes full type definitions. No additional @types packages are needed.
TypeScript Configuration
Ensure your tsconfig.json includes:
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"lib": ["ES2020"],
"moduleResolution": "node",
"esModuleInterop": true,
"skipLibCheck": true
}
}
Verification
Verify your installation:
import { Account } from "@fatsolutions/tongo-sdk";
console.log("Tongo SDK loaded successfully!");
Next Steps
- Quick Start Guide - Create your first Tongo transaction
- Core Concepts - Learn about Accounts and Operations