Skip to main content
This guide shows how to install and initialize the official DLMM TypeScript SDK, @meteora-ag/dlmm. Before you begin, here are some important resources:

TypeScript SDK

Meteora DLMM TypeScript SDK

DLMM NPM Package

Meteora DLMM NPM Package

Installation

To use the SDK in your project, install it using your preferred package manager:

Initialization

Once installed, initialize a pool client with a Solana connection and a DLMM pool address:
You can find pool addresses with the Data API:
To initialize several pools efficiently:

Cluster And Program ID

The SDK defaults to the public DLMM program ID:
Pass opt when using devnet or a custom program ID:

Reference

SDK Examples

Explore full transaction flows, including pool initialization, swaps, liquidity, and more.

SDK Reference

Learn about all SDK functions: pool creation, liquidity, swaps, rewards, limit orders, and Token-2022 helpers.

Testing The SDK

If you have cloned the SDK repository, start with package-level checks:
For commons, CLI, scripts, and broader repository testing notes, see the DLMM overview.

Faucets

Devnet Faucet

When working on devnet, you might need test tokens. Here is a helpful faucet.