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

The SDK 1.5.9 bundled IDL lists DBC errors through 6076. The local program source also defines InvalidRemainingAccountSliceType as the next error variant. If you decode from the bundled IDL only, 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.