Skip to main content
This page lists the Anchor custom errors returned by the dynamic-bonding-curve 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, PoolError::MathOverflow maps to code 6000.

Error Codes

Program 0.2.1 and SDK 1.5.12 include errors through 6082. If you decode from an older bundled IDL, handle unknown custom errors defensively or regenerate the IDL from the matching program source.

TypeScript SDK Validation Helpers

The TypeScript SDK performs many checks before building transactions. These helpers return booleans or throw SDK-side errors before the program returns a custom error.