> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meteora.ag/llms.txt
> Use this file to discover all available pages before exploring further.

# Integration

> DAMM v2

The `damm-v2-go` provides a convenient way to interact with the DAMM v2 instructions directly.

Before you begin, here are some important resources:

<CardGroup cols={1}>
  <Card title="Go SDK" icon="golang" iconType="solid" href="https://github.com/MeteoraAg/damm-v2-go">
    Meteora DAMM v2 Go SDK
  </Card>
</CardGroup>

# Getting Started

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

## Clone the repository

```bash theme={"system"}
git clone https://github.com/MeteoraAg/damm-v2-go.git
```

## Install dependencies

```bash theme={"system"}
go mod tidy
```

## Run the examples

<Note> Before running the examples, you need to set the private keys and public keys in the examples. </Note>

```bash theme={"system"}
go run examples/<file-name>.go
```

# Examples

<CardGroup cols={2}>
  <Card title="Claim Position Fee" icon="coins" iconType="solid" href="https://github.com/MeteoraAg/damm-v2-go/blob/main/examples/claim_position_fee.go">
    Example showing how to claim accumulated fees from a position
  </Card>

  <Card title="Get All Position NFT Accounts by Owner" icon="wallet" iconType="solid" href="https://github.com/MeteoraAg/damm-v2-go/blob/main/examples/get_all_position_nft_account_by_owner.go">
    Retrieve all position NFT accounts owned by a specific user
  </Card>

  <Card title="Get Pool" icon="water" iconType="solid" href="https://github.com/MeteoraAg/damm-v2-go/blob/main/examples/get_pool.go">
    Fetch pool information and current state
  </Card>

  <Card title="Get Position" icon="location-dot" iconType="solid" href="https://github.com/MeteoraAg/damm-v2-go/blob/main/examples/get_position.go">
    Get detailed information about a specific position
  </Card>

  <Card title="Get Positions by User" icon="user" iconType="solid" href="https://github.com/MeteoraAg/damm-v2-go/blob/main/examples/get_positions_by_user.go">
    Retrieve all positions associated with a user account
  </Card>

  <Card title="Get Unclaim Reward" icon="gift" iconType="solid" href="https://github.com/MeteoraAg/damm-v2-go/blob/main/examples/get_unclaim_reward.go">
    Check unclaimed rewards available for a position
  </Card>

  <Card title="Get User Position by Pool" icon="users" iconType="solid" href="https://github.com/MeteoraAg/damm-v2-go/blob/main/examples/get_user_position_by_pool.go">
    Find user positions within a specific pool
  </Card>
</CardGroup>
