Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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 SDKStarknet.jsNode.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