Meteora Documentation home page
Search...
⌘K
Ask AI
Meteora
Blog
Support
Search...
Navigation
CPI
Examples
Welcome
Overview
Anti Sniper Suite
Developer Guide
API Reference
Resources
Legal
GitHub
Faucet
Support
Developer Updates
API Status
Introduction
Overview
Quick Launch
DLMM Launch Pool
DAMM v2 Launch Pool
DAMM v1 Launch Pool
DBC Token Launch Pool
Invent with Metsumi
Actions
Scaffolds
Guides
DLMM
DAMM v2
DAMM v1
Overview
Pool Fee Configs
Typescript SDK
Farming SDK
CPI
Examples
DBC
Alpha Vault
Stake2Earn
Dynamic Vault
Meteora Lock
Dynamic Fee Sharing
Zap
Trading Terminals
Integrate with DBC
Integrate with DAMM v2
On this page
Dependencies
CPI Examples
CPI
Examples
Copy page
DAMM v1
Copy page
This
repository
contains examples for Cross-Program Invocation (CPI) that interacts with the DAMM v1 program.
Dependencies
Anchor:
0.28.0
Solana:
1.16.1
Rust:
1.68.0
CPI Examples
CPI Example for DAMM v1 Swap
Example of swapping using Dynamic AMM via CPI.
CPI Example for DAMM v1 Initialize Pool
Example of initializing a pool using Dynamic AMM via CPI.
CPI Example for DAMM v1 Initialize Pool with Config
Example of initializing a pool with configuration using Dynamic AMM via CPI.
CPI Example for DAMM v1 Lock Liquidity
Example of locking liquidity using Dynamic AMM via CPI.
CPI Example for DAMM v1 Claim Fee
Example of claiming fees using Dynamic AMM via CPI.
Tests
Comprehensive tests for all the CPI examples.
Was this page helpful?
Yes
No
Farm Integration
Previous
Overview
Next
Assistant
Responses are generated using AI and may contain mistakes.