PARANOID

Error reference

Program errors

ErrorWhen
NotUpgradeAuthoritySomeone other than the upgrade authority calls initialize or set_burn_target
InvalidParameterA launch parameter is out of range
InvalidTreasuryThe treasury is not a USDC token account
InvalidEpochsepochs is 0 or above max_epochs
InvalidCommitmentThe commitment is zero
NotAFieldElementA value is not a BN254 field element
TreeFullThe tree holds 2^20 leaves already
InvalidPathThe Merkle path does not lead to the current root
MembershipEndedExit requested after the membership already ended; withdraw instead
NotDepositorOnly the depositor may exit or withdraw
NotActiveThe member is not active
NotWithdrawableThe member is not exiting, or the slashing window has not passed
AlreadySlashedThe member was already slashed
SecretMismatchThe revealed secret does not open the member's commitment
BurnTargetSet / BurnTargetNotSetThe burn target was already set, or is not set yet
BurnPoolInvalidThe pool is not the configured Raydium CP-Swap USDC pool
BurnTwapUnavailableThe pool has no observation old enough to price the buy
BurnAmountInvalidAmount is zero, unfunded, or above 0.1% of the pool's USDC side
MathOverflowArithmetic overflow

Gateway errors

OpenAI-style JSON: {"error":{"message","type","code"}}.

StatusCodeMeaning
401missing_api_keyNo key was sent. Make one in the app.
400invalid_jsonThe body is not JSON
400invalid_requestmessages is not a list
503not_openThe member vault is not on this network yet (pre-launch)
502model_unreachableThe model did not answer; the slot is spent
401invalid_api_keyThe key is not a PARANOID key, or was made for a different allowance
401invalid_proofA proof in the key does not verify against the circuit's verifying key
401stale_member_listThe key was proven against a member-list root the program no longer accepts for that hour
401key_expiredThe key's hour ended, plus its grace (a sixth of an hour, at most ten minutes)
402key_used_upEvery request slot in the key is spent; make a new key
402slot_reusedThe key spends a slot already spent on another message. The two shares reveal the member's secret and the gateway slashes that member on chain
Next: FAQ