Skip to main content
This guide shows how to install and initialize the official DAMM v2 TypeScript SDK, @meteora-ag/cp-amm-sdk. Before you begin, here are the main resources:

TypeScript SDK

Public SDK source, examples, tests, and generated cp_amm IDL.

NPM Package

Published @meteora-ag/cp-amm-sdk package.

Installation

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

Initialization

You can also find pool addresses with the Data API:

Program ID

The SDK uses the public DAMM v2 program ID by default:

Reference

SDK Examples

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

SDK Reference

Access the full method map, PDA helpers, and fee helpers for DAMM v2.

Testing the SDK

The SDK repository includes Vitest and Bankrun tests. They use the SDK source and a local program fixture, so they are best for SDK contributors and regression testing. App integrators should also test against devnet or their own local validator flow before shipping transaction code.

Faucets

Devnet Faucet

Use this when your devnet test wallet needs SOL for fees and rent.