Skip to main content
The public damm-v2-go repository provides Go examples for reading DAMM v2 state with solana-go. Treat it as example code for account reads, deserialization, and selected low-level instructions rather than a full transaction SDK.

Setup

Before running examples, set the RPC endpoint and addresses in the example file you are using. Some examples also require uncommenting the local main() function.

Available Examples

The Go constants include the public DAMM v2 program ID:

Helpers And Validation

Integration Notes

For custom Go clients, generate from the public cp_amm IDL and cross-check account layouts against Accounts.