> ## Documentation Index
> Fetch the complete documentation index at: https://developers.squads.so/llms.txt
> Use this file to discover all available pages before exploring further.

# TypeScript SDK Quickstart

> ## Installation

**Version:** 3.1.0 | [View on npm](https:/www.npmjs.com/package/@sqds/grid)

Grid SDK for typescript applications.

## Installation

```bash theme={null}
npm install @sqds/grid
```

## Features

* **Multi-provider**: Turnkey, Privy, and passkey authentication
* **Smart accounts**: Multi-sig policies, spending limits, time locks
* **Smart transactions**: Automated DCA, limit orders, and trading strategies
* **Fiat on/off-ramp**: ACH, SEPA, wire transfers with virtual accounts
* **KYC verification**: Identity verification for regulated operations

## Usage

```typescript theme={null}
import { GridClient } from '@sqds/grid';

const client = new GridClient({
  apiKey: 'your-api-key',
  environment: 'sandbox',
});

try {
  const sessionSecrets = await client.generateSessionSecrets();

  await client.createAccount({
    email: 'user@example.com'
  });

  const otpCode = '123456';

  const response = await client.completeAuthAndCreateAccount({
    email: 'user@example.com',
    code: otpCode,
    sessionSecrets
  });

  const balances = await client.getBalances({
    accountAddress: response.data.address,
  });

  console.log('Balances:', balances.data);
} catch (error) {
  console.error('Error:', error.message);
}
```

**Note:** After calling `createAccount`, an OTP code will be sent to the user's email. The user must enter this code, which you then pass to `completeAuthAndCreateAccount` to complete the authentication flow.
