Meteora Documentation home page
Search...
βK
Ask AI
Meteora
Blog
Support
Search...
Navigation
CPI
DAMM v1 CPI Examples
Overview
Anti Sniper Suite
Developer Guide
API Reference
Resources
Legal
GitHub
Faucet
Support
Developer Updates
API Status
Introduction
Meteora Stack Overview
Quick Launch
DLMM Launch Pool
DAMM v2 Launch Pool
DAMM v1 Launch Pool
DBC Token Launch Pool
Invent with Metsumi
Metsumi Actions π
Metsumi Scaffolds π
Guides
DLMM
DAMM v1
Introduction
Pool Fee Configs
Dynamic Pool Configs
DAMM v1 Formulas
Typescript SDK
CPI
DAMM v1 CPI Examples
DAMM v2
DBC
Alpha Vault
Stake2Earn
Dynamic Vault
Meteora Lock
Dynamic Fee Sharing
On this page
Dependencies
Available Examples
Testing
CPI
DAMM v1 CPI Examples
Copy page
Copy page
This
repository
contains examples for Cross-Program Invocation (CPI) to swap using DAMM v1 program.
β
Dependencies
Anchor:
0.28.0
Solana:
1.16.1
Rust:
1.68.0
β
Available Examples
CPI to Dynamic AMM swap example
Example of swapping using Dynamic AMM via CPI.
CPI to Dynamic AMM initialize pool example
Example of initializing a pool using Dynamic AMM via CPI.
CPI to Dynamic AMM initialize pool with config example
Example of initializing a pool with configuration using Dynamic AMM via CPI.
CPI to Dynamic AMM lock liquidity example
Example of locking liquidity using Dynamic AMM via CPI.
CPI to Dynamic AMM claim fee example
Example of claiming fees using Dynamic AMM via CPI.
CPI to M3m3 initialize vault example
Example of initializing a vault using M3m3 via CPI.
β
Testing
The
repository
includes comprehensive tests for all the CPI examples.
Was this page helpful?
Yes
No
Farm Integration
Introduction
Assistant
Responses are generated using AI and may contain mistakes.