# Getting Started

This section covers the fundamentals needed to start building with DLMM:

#### [Overview](/integration/dlmm/typescript-sdk/getting-started/overview.md)

Understand what DLMM is, how it differs from traditional AMMs, and its key advantages for both liquidity providers and traders.

#### [Installation](/integration/dlmm/typescript-sdk/getting-started/installation.md)

Set up the DLMM SDK in your project with step-by-step installation instructions and dependency requirements.

#### [SDK Initialization](/integration/dlmm/typescript-sdk/getting-started/sdk-initialization.md)

Configure the SDK for different networks, set up your connection, and prepare for your first transactions.

#### [Key Concepts](/integration/dlmm/typescript-sdk/getting-started/key-concepts.md)

Master the core concepts of DLMM including bins, bin steps, active bins, and how price discovery works in a discretized system.

### Quick Example

Here's a taste of what you can do with the DLMM SDK:

```typescript
import { FerraDlmmSDK, BinMath } from '@ferra-labs/dlmm'

// Initialize SDK
const sdk = new FerraDlmmSDK({
  network: 'mainnet',
  fullNodeUrl: 'https://...',
  senderAddress: '0x...'
})

// Get a pair and check price
const pair = await sdk.Pair.getPair('0x...')
const price = BinMath.getPriceFromId(
  pair.parameters.active_id,
  Number(pair.binStep),
  9, // tokenX decimals
  6  // tokenY decimals
)

console.log(`Current price: ${price} tokenY per tokenX`)
```

### Prerequisites

Before you begin, ensure you have:

* Node.js 16+ installed
* Basic understanding of DeFi and liquidity provision
* Familiarity with TypeScript (recommended)
* A Sui wallet with some SUI for gas fees

### Choose Your Path

#### For Developers

Start with [SDK Initialization](/integration/dlmm/typescript-sdk/getting-started/sdk-initialization.md) to set up your development environment.

#### For Liquidity Providers

Jump to [Key Concepts](/integration/dlmm/typescript-sdk/getting-started/key-concepts.md) to understand how DLMM liquidity works.

### Support

* **Discord**: Join our community for help
* **GitHub**: Report issues or contribute
* **Docs**: You're here!

Ready to dive in? Let's start with the [Overview](/integration/dlmm/typescript-sdk/getting-started/overview.md) →


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ferra.ag/integration/dlmm/typescript-sdk/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
