dbc-go
provides a convenient way interact with the DAMM v2 instructions directly.
Before you begin, here are some important resources:
Getting Started
To use the Go SDK and test locally, you can use the following command:Clone the repository
Install dependencies
Run the examples
Before running the examples, you need to set the private keys and public keys in the examples.
Examples
Create Pool and Swap SOL
Example showing how to create a new pool and perform SOL swaps
Create Pool and Swap USDC
Example showing how to create a new pool and perform USDC swaps
Claim Creator Trading Fee
Claim accumulated trading fees for pool creators
Claim Partner Trading Fee
Claim accumulated trading fees for partners
Fetch Pool Configuration
Retrieve pool configuration settings and parameters
Fetch Pool Fee Metrics
Get detailed fee metrics and statistics for a pool
Fetch Pool
Fetch pool information and current state
Fetch Bonding Curve Progress
Monitor the progress of the bonding curve for a pool
Transfer Pool Creator Fee
Transfer creator fees from one account to another