Skip to main content
This page lists the Anchor custom errors returned by the DAMM v2 cp-amm program.
Anchor custom program errors start at 6000. When a transaction log contains custom program error: 0x1771, convert the hex value to decimal to find the matching code. For example, 0x1771 is 6001, which maps to InvalidFee.

Error Codes

Typescript SDK Validation Errors

The TypeScript SDK also raises local validation errors before a transaction is built. These are JavaScript errors rather than on-chain Anchor errors.