damm-v2-go
provides a convenient way to 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
Claim Position Fee
Example showing how to claim accumulated fees from a position
Get All Position NFT Accounts by Owner
Retrieve all position NFT accounts owned by a specific user
Get Pool
Fetch pool information and current state
Get Position
Get detailed information about a specific position
Get Positions by User
Retrieve all positions associated with a user account
Get Unclaim Reward
Check unclaimed rewards available for a position
Get User Position by Pool
Find user positions within a specific pool