Skip to main content
The damm-v2-go provides a convenient way to interact with the DAMM v2 instructions directly. Before you begin, here are some important resources:

Go SDK

Meteora DAMM v2 Go SDK

Getting Started

To use the Go SDK and test locally, you can use the following command:

Clone the repository

git clone https://github.com/MeteoraAg/damm-v2-go.git

Install dependencies

go mod tidy

Run the examples

Before running the examples, you need to set the private keys and public keys in the examples.
go run examples/<file-name>.go

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