Skip to content
elyrail

Error codes

Every failure carries a stable code. Codes never change meaning once released. POLICY_DENIED and SIMULATION_MISMATCH also carry a deny reason in details.reason. Generated from the source at build time.

Codes

CodeMeaning
CHAIN_ID_MISMATCHAn RPC endpoint or transaction reported a chain ID other than the expected one.
CHAIN_UNSUPPORTEDThe chain ID is not Elysium mainnet (99901) or testnet (99801).
RPC_UNAVAILABLENo configured RPC endpoint answered.
RPC_INCONSISTENTConfigured RPC endpoints returned different data for the same query.
CONFIG_UNKNOWNNo registry entry exists for this chain and key.
CONFIG_UNVERIFIEDThe registry entry exists but is marked unverified, so write paths cannot use it.
INVALID_ADDRESSThe value is not a valid address, or its mixed-case checksum is wrong.
INVALID_AMOUNTThe amount is not a plain non-negative decimal within the token's precision and uint256 range.
INVALID_INPUTThe input failed schema validation.
POLICY_INVALIDThe policy document failed validation.
POLICY_DENIEDThe policy has no rule that allows this action, or a limit would be exceeded.
KILL_SWITCH_ENGAGEDThe kill switch is engaged. All signing is halted.
SIMULATION_FAILEDSimulation reverted or could not be run.
SIMULATION_MISMATCHSimulated effects differ from what the action declared.
APPROVAL_REJECTEDA human approver rejected the action.
APPROVAL_MISMATCHThe approval response was not bound to the transaction hash shown to the approver.
APPROVAL_TIMEOUTNo approval arrived before the deadline.
APPROVAL_UNAVAILABLEThe action needs human approval but no approval channel is configured.
KEYSTORE_INVALIDThe keystore file is malformed or uses unsupported parameters.
KEYSTORE_DECRYPT_FAILEDThe keystore could not be decrypted. The password is wrong or the file was modified.
SIGNER_MISMATCHThe signer returned a signature or transaction that does not match the request.
SIGNER_DESTROYEDThe signer's key material has been erased.
LOCK_TIMEOUTA local state lock could not be acquired in time.
IDEMPOTENCY_CONFLICTThe idempotency key was already used for a different action.
GAS_CAP_EXCEEDEDGas limit or fee exceeds the policy cap.
PRICE_UNAVAILABLEA USD limit applies but no price is available for the token.
AUDIT_LOG_CORRUPTThe audit log hash chain does not verify.
BROADCAST_FAILEDThe signed transaction could not be broadcast.
VENUE_REJECTEDThe venue received the signed action and rejected it, for example below a minimum order size.
STATE_CORRUPTA local state file is malformed.

Deny reasons

ReasonMeaning
AGENT_NOT_ALLOWEDThe agent is not listed in the policy.
CHAIN_NOT_ALLOWEDThe action targets a chain other than the policy's chain.
OUTSIDE_TIME_WINDOWThe action is outside every allowed time window.
RATE_LIMITEDThe agent has reached its action rate limit.
RECIPIENT_NOT_ALLOWEDThe recipient is not on the allowlist.
TOKEN_NOT_ALLOWEDThe token is not declared in the policy or has no spend limit.
CONTRACT_NOT_ALLOWEDThe contract is not on the allowlist.
SELECTOR_NOT_ALLOWEDThe function selector is not allowed for this contract.
VALUE_NOT_ALLOWEDThe native value sent with the call exceeds the rule's limit.
SPENDER_NOT_ALLOWEDNo approval rule covers this token and spender.
APPROVAL_CAP_EXCEEDEDThe approval amount exceeds the rule's maximum.
UNLIMITED_APPROVALUnlimited approvals are not allowed by this policy.
APPROVAL_EXPIRY_TOO_LONGThe Permit2 expiration is further out than the rule allows.
VENUE_NOT_ALLOWEDNo swap rule covers this venue and router.
SLIPPAGE_EXCEEDEDThe minimum output allows more slippage than the venue's cap.
PER_TX_CAP_EXCEEDEDThe amount exceeds the per-transaction cap.
WINDOW_CAP_EXCEEDEDThe amount would exceed a rolling-window cap.
USD_CAP_EXCEEDEDThe USD value exceeds a USD cap.
PRICE_UNAVAILABLEA USD rule applies but no price is available.
MALFORMED_ACTIONThe action is internally inconsistent.
MARKET_NOT_ALLOWEDThe market is not on the trading allowlist.
LEVERAGE_EXCEEDEDThe leverage exceeds the policy maximum.
NOTIONAL_EXCEEDEDThe order or resulting position exceeds a notional cap.
TRADING_NOT_ALLOWEDThe policy has no trading rule for this venue and network.
PRICE_DEVIATION_EXCEEDEDThe limit price is further from the reference price than the policy allows.
SIMULATION_REVERTEDSimulation reverted.
EFFECT_MISMATCHSimulated effects differ from what the action declared.

A denial is final for the current policy. Agents are told not to split or retry an action to get around a cap; the caps hold regardless.