> ## Documentation Index
> Fetch the complete documentation index at: https://creator-a1160a86.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started

> Setup environment and DLMM instance

## Install dependencies

After setting up a Typescript/Javascript/React project, head over to the
terminal and install the `@saros-finance/dlmm-sdk` library.

```shellscript npm theme={null}
npm install @saros-finance/dlmm-sdk
```

```shellscript yarn theme={null}
yarn add @saros-finance/dlmm-sdk
```

## Create client object

Every action that the SDK offers can be directly utilized from `LiquidityBookServices` object.
So lets configure a single instance in `services.ts` file, that will be used
to perform all DLLM operations.

```typescript services.ts theme={null}
import { LiquidityBookServices, MODE } from "@saros-finance/dlmm-sdk";

export const sarosDLMM = new LiquidityBookServices({
  mode: MODE.DEVNET,
  options: {
    rpcUrl:
      "https://devnet.helius-rpc.com/?api-key=f831b443-8520-4f01-8228-59af9bb829b7",
  },
});
```

> [!NOTE]
>
> For smoother reading experinence the documentation walks you with a simple
> TS project as a base. Source code ...

## Verify the setup

Head over to `index.ts` file and run this command.

```typescript index.ts theme={null}
import { sarosDLLM } from "./service.js";

console.log(sarosDLLM.getDexName())

console.log(sarosDLLM.getDexProgramId())
```

By running the script you should see an output like below.

```bash theme={null}
Saros DLMM
PublicKey [PublicKey(EZoLi7fVCWjns7ukzjggSeDpG2GEGJbGs3MTRxAE29d4)] {
  _bn: <BN: c98ee99afd2472b98cc9ba5b0b7408ede0e335b145fa0107c26442cf625235a3>
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.