Skip to main content
Fade’s errors are Anchor custom errors, numbered from 6000. A failed transaction carries the code in its error ({"Custom": 6020}) and the name and message in the program logs:
The generated client exports the codes as constants (for example FADE_ERROR__PER_WAGER_CAP) and a getFadeErrorMessage(code) helper. Simulate transactions before signing to get the error for free.

Paytable and admission (open_wager)

Randomness and settlement

Liquidity

Governance and general

Errors outside this list come from the runtime or another program, for example an SPL token transfer failing for insufficient funds, or a system transfer failing because the payer lacks SOL.