Skip to content

A TypeScript SDK for interacting with the CP-AMM on Meteora

Notifications You must be signed in to change notification settings

MeteoraAg/cp-amm-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteora Constant Product AMM SDK (DAMM V2 SDK)

A TypeScript SDK for interacting with the Dynamic CP-AMM on Meteora

Overview

This SDK provides a set of tools and methods to interact with the Meteora Dynamic CP-AMM. It simplifies common operations like creating pools, managing positions, adding/removing liquidity, swapping tokens, and claiming rewards.

For detailed technical documentation, please refer to the CP-AMM SDK Documentation.

Installation

pnpm install @meteora-ag/cp-amm-sdk
# or
yarn add @meteora-ag/cp-amm-sdk

Initialization

import { Connection } from "@solana/web3.js";
import { CpAmm } from "@meteora-ag/cp-amm-sdk";

// Initialize a connection to the Solana network
const connection = new Connection("https://api.mainnet-beta.solana.com");

// Create a new instance of the CpAmm SDK
const cpAmm = new CpAmm(connection);

Test

pnpm install
pnpm test

Deployments

  • Mainnet-beta: cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG
  • Devnet: cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG

Faucets

https://faucet.raccoons.dev/

About

A TypeScript SDK for interacting with the CP-AMM on Meteora

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published