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
| Code | Meaning |
|---|---|
CHAIN_ID_MISMATCH | An RPC endpoint or transaction reported a chain ID other than the expected one. |
CHAIN_UNSUPPORTED | The chain ID is not Elysium mainnet (99901) or testnet (99801). |
RPC_UNAVAILABLE | No configured RPC endpoint answered. |
RPC_INCONSISTENT | Configured RPC endpoints returned different data for the same query. |
CONFIG_UNKNOWN | No registry entry exists for this chain and key. |
CONFIG_UNVERIFIED | The registry entry exists but is marked unverified, so write paths cannot use it. |
INVALID_ADDRESS | The value is not a valid address, or its mixed-case checksum is wrong. |
INVALID_AMOUNT | The amount is not a plain non-negative decimal within the token's precision and uint256 range. |
INVALID_INPUT | The input failed schema validation. |
POLICY_INVALID | The policy document failed validation. |
POLICY_DENIED | The policy has no rule that allows this action, or a limit would be exceeded. |
KILL_SWITCH_ENGAGED | The kill switch is engaged. All signing is halted. |
SIMULATION_FAILED | Simulation reverted or could not be run. |
SIMULATION_MISMATCH | Simulated effects differ from what the action declared. |
APPROVAL_REJECTED | A human approver rejected the action. |
APPROVAL_MISMATCH | The approval response was not bound to the transaction hash shown to the approver. |
APPROVAL_TIMEOUT | No approval arrived before the deadline. |
APPROVAL_UNAVAILABLE | The action needs human approval but no approval channel is configured. |
KEYSTORE_INVALID | The keystore file is malformed or uses unsupported parameters. |
KEYSTORE_DECRYPT_FAILED | The keystore could not be decrypted. The password is wrong or the file was modified. |
SIGNER_MISMATCH | The signer returned a signature or transaction that does not match the request. |
SIGNER_DESTROYED | The signer's key material has been erased. |
LOCK_TIMEOUT | A local state lock could not be acquired in time. |
IDEMPOTENCY_CONFLICT | The idempotency key was already used for a different action. |
GAS_CAP_EXCEEDED | Gas limit or fee exceeds the policy cap. |
PRICE_UNAVAILABLE | A USD limit applies but no price is available for the token. |
AUDIT_LOG_CORRUPT | The audit log hash chain does not verify. |
BROADCAST_FAILED | The signed transaction could not be broadcast. |
VENUE_REJECTED | The venue received the signed action and rejected it, for example below a minimum order size. |
STATE_CORRUPT | A local state file is malformed. |
Deny reasons
| Reason | Meaning |
|---|---|
AGENT_NOT_ALLOWED | The agent is not listed in the policy. |
CHAIN_NOT_ALLOWED | The action targets a chain other than the policy's chain. |
OUTSIDE_TIME_WINDOW | The action is outside every allowed time window. |
RATE_LIMITED | The agent has reached its action rate limit. |
RECIPIENT_NOT_ALLOWED | The recipient is not on the allowlist. |
TOKEN_NOT_ALLOWED | The token is not declared in the policy or has no spend limit. |
CONTRACT_NOT_ALLOWED | The contract is not on the allowlist. |
SELECTOR_NOT_ALLOWED | The function selector is not allowed for this contract. |
VALUE_NOT_ALLOWED | The native value sent with the call exceeds the rule's limit. |
SPENDER_NOT_ALLOWED | No approval rule covers this token and spender. |
APPROVAL_CAP_EXCEEDED | The approval amount exceeds the rule's maximum. |
UNLIMITED_APPROVAL | Unlimited approvals are not allowed by this policy. |
APPROVAL_EXPIRY_TOO_LONG | The Permit2 expiration is further out than the rule allows. |
VENUE_NOT_ALLOWED | No swap rule covers this venue and router. |
SLIPPAGE_EXCEEDED | The minimum output allows more slippage than the venue's cap. |
PER_TX_CAP_EXCEEDED | The amount exceeds the per-transaction cap. |
WINDOW_CAP_EXCEEDED | The amount would exceed a rolling-window cap. |
USD_CAP_EXCEEDED | The USD value exceeds a USD cap. |
PRICE_UNAVAILABLE | A USD rule applies but no price is available. |
MALFORMED_ACTION | The action is internally inconsistent. |
MARKET_NOT_ALLOWED | The market is not on the trading allowlist. |
LEVERAGE_EXCEEDED | The leverage exceeds the policy maximum. |
NOTIONAL_EXCEEDED | The order or resulting position exceeds a notional cap. |
TRADING_NOT_ALLOWED | The policy has no trading rule for this venue and network. |
PRICE_DEVIATION_EXCEEDED | The limit price is further from the reference price than the policy allows. |
SIMULATION_REVERTED | Simulation reverted. |
EFFECT_MISMATCH | Simulated 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.