Skip to main content

Install dependencies

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

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.
services.ts
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.
index.ts
By running the script you should see an output like below.