Meteora Documentation home page
Search...
⌘K
GitHub
Faucet
Support
Developer Updates
Integration
Overview
DLMM
DAMM v1
Introduction
Pool Fee Configs
Dynamic Pool Configs
DAMM v1 Formulas
Typescript SDK
CPI
DAMM v1 CPI Examples
API
DAMM v2
DBC
Alpha Vault
Stake2Earn
Dynamic Vault
Meteora Lock
Dynamic Fee Sharing
Launch Pools
DLMM Launch Pool
Alpha Vault Launch Pool
DAMM v1 Launch Pool
DAMM v2 Launch Pool
Meteora
Blog
Support
Meteora Documentation home page
Search...
⌘K
Ask AI
Meteora
Blog
Support
Search...
Navigation
CPI
DAMM v1 CPI Examples
Overview
Anti Sniper Suite
Developer Guide
Resources
Legal
Overview
Anti Sniper Suite
Developer Guide
Resources
Legal
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
Previous
Pool Info
Next
On this page
Dependencies
Available Examples
Testing
Assistant
Responses are generated using AI and may contain mistakes.