Error Codes#
Complete reference of Seesaw protocol error codes.
User-Facing Message Matrix#
Apps, SDKs, CLI commands, and API transaction builders should convert raw
program errors into specific recovery messages. Do not surface bare values like
Custom(68) to traders.
| Situation | Program errors or symptoms | User-facing message | Recovery action |
|---|---|---|---|
| Insufficient collateral | InsufficientBalance, transaction simulation fail | Not enough USDT to place this order | Add USDT or reduce order size |
| Insufficient shares | InsufficientBalance, InvalidRedemption | You do not have enough shares for this action | Reduce size or refresh position |
| Trading not started | TradingNotStarted, EpochNotStarted | This market is not live yet | Wait for the start snapshot |
| Trading ended | TradingEnded, EpochNotEnded where applicable | Trading has closed for this market | Claim after resolution or choose another market |
| Already settled/resolved | AlreadyResolved, MarketNotResolved | This market is already resolved or not resolved yet | Refresh market state |
| Orderbook full | OrderbookFull | The order book is full at the moment | Use a matching price or try again later |
| Cancellation session changed | CancelSessionMismatch, CancelSessionActive | The active cancellation session differs from this request | Refresh the seat and continue with its nonce and scope |
| Client order not found | ClientOrderIdNotFound | No current order has that client ID for this owner | Refresh orders before retrying |
| Strategy expired or stopped | StrategyExpired, StrategyStopped | The strategy cannot take this action | Review the strategy in the owner wallet |
| Reduced order too small | RestingNotionalTooSmall | The remaining order would be below the minimum | Cancel it fully or leave a larger remainder |
| Price outside band | OrderPriceOutOfBand | Maker price is outside the allowed band | Move price closer to the current market |
| Post-only would cross | WouldCross | Post-only order would execute immediately | Adjust price or use a regular limit order |
| Stale oracle | StaleOracle | Waiting for a fresh Pyth price | Retry after the next oracle update |
| Confidence too wide | ConfidenceTooWide | Pyth confidence is too wide for this market | Wait for market conditions to stabilize |
| Oracle not valid/trading | InvalidOracleData, InvalidPrice | Pyth data is not currently usable for this market | Retry or check the feed status |
| Wrong network/account | InvalidAccountOwner, InvalidPDA, wallet error | Wallet or account does not match this deployment | Switch network or reconnect wallet |
| Missing token account | token-account simulation failure | Required token account is missing | Create/fund the token account |
| Transaction timeout | expired blockhash, no confirmation | Transaction was submitted but did not confirm in time | Check signature, then retry if it did not land |
| RPC rate limited | HTTP 429, RPC provider error | RPC provider is rate-limiting requests | Retry with backoff or switch endpoint |
| Wallet rejection | wallet adapter rejection | Transaction was rejected in the wallet | Reopen the action and approve if still intended |
| Preparation already finished | PreallocationReceiptNotActive | This market preparation was already opened or reclaimed | Refresh the canonical market and receipt state |
| Preparation reclaim too early | PreallocationReclaimTooEarly | Only the creator can reclaim this preparation yet | Use the creator wallet or wait for the 24-hour boundary |
| Preparation does not match | PreallocationReceiptMismatch, PreallocationTargetMismatch | The saved preparation does not match this market | Rebuild from canonical receipt and market data |
| External market halted | MarketHalted | New orders are paused for this market | Cancel, withdraw, or use another allowed exit |
| External expiry early | TooEarly | This market is not eligible for permissionless expiry yet | Retry after the displayed strict expiry time |
| Source result mismatch | SourceClaimBindingMismatch, SourceImmutableBindingMismatch | The signed result does not match this market | Re-read the source state; do not rewrite the signed result |
| Source operation done | SourceOperationRedundant | This source operation has already taken effect | Refresh market and source state; treat it as success |
Every failed transaction surface should include the submitted signature when one exists, an explorer link, the current market state if known, and a safe retry instruction.
Overview#
Error codes are organized by category for easy identification:
Market Errors (0x1001 - 0x1012)#
| Code | Name | Description | Resolution |
|---|---|---|---|
0x1001 | MarketExists | Market account already exists | Use existing market |
0x1002 | InvalidState | Operation not valid in current market state | Check market state before operation |
0x1003 | TradingNotStarted | Trading has not begun (start price not snapshotted) | Wait for start price snapshot |
0x1004 | TradingEnded | Trading period has ended | Cannot place new orders |
0x1005 | AlreadyResolved | Market outcome already determined | No-op, proceed to settlement |
0x1006 | MarketNotResolved | Market not yet resolved | Wait for resolution |
0x1007 | TooEarly | Operation attempted too early | Wait for appropriate time |
0x1008 | EpochNotStarted | Epoch has not started yet | Wait for t_start |
0x1009 | EpochNotEnded | Epoch has not ended yet | Wait for t_end |
0x100A | NotOwner | Caller is not the owner of the resource | Use correct wallet |
0x100B | PositionsRemaining | Unsettled positions or redeemable bearer supply remain | Settle positions and reduce every aggregate leg payout to zero |
0x100C | MarketCloseTimeout | Market close timeout has not elapsed (resolved_at + 7 days) | Wait for the 7-day timeout |
0x100D | InvalidCreator | Creator account does not match the market's creator | Use the correct creator keypair |
0x100E | VaultNotEmpty | Vault still contains funds; cannot close market | Withdraw all funds first |
0x100F | InvalidDuration | Market duration is outside allowed bounds (60s–604800s) | Use a valid duration |
0x1010 | InvalidConfidenceRatio | Confidence ratio exceeds maximum valid value (10000 bps) | Use a lower confidence ratio |
0x1011 | InvalidStateTransition | State transition is not valid from current state | Check market state before operation |
0x1012 | LedgerBalancesRemaining | Occupied trader-ledger slots retain quote or share balances | Withdraw or settle ledger balances before closing |
Market Error Examples#
// Check if market exists before interacting
try {
const market = await program.account.market.fetch(marketPda);
} catch (e) {
if (e.code === 0x1001) {
console.log('Market already exists');
}
}
// Handle trading state
if (error.code === 0x1004) {
console.log('Trading has ended for this market');
// Redirect to settlement or next market
}
Oracle Errors (0x2001 - 0x2007)#
| Code | Name | Description | Resolution |
|---|---|---|---|
0x2001 | OracleMismatch | Pyth feed does not match market configuration | Use correct feed for market |
0x2002 | StaleOracle | Oracle price data is stale | Wait for fresh price update |
0x2003 | InvalidPrice | Oracle reported an invalid price (zero or negative) | Check feed status |
0x2004 | ConfidenceTooWide | Oracle confidence interval exceeds maximum allowed ratio | Wait for more certain price |
0x2005 | FeedIdMismatch | Pyth feed ID does not match expected feed ID stored in market | Verify feed ID |
0x2006 | InvalidOracleData | Oracle price exponent is outside valid range [-18, 18] | Check oracle data format |
0x2007 | OraclePriceJumpTooLarge | Oracle end price moved beyond the circuit-breaker bound | Wait for market to stabilize |
Oracle Error Examples#
// Handle stale oracle
if (error.code === 0x2002) {
console.log('Oracle price is stale, retrying in 1 second...');
await sleep(1000);
// Retry operation
}
// Handle confidence issues
if (error.code === 0x2004) {
console.log('Price confidence too wide, market may be volatile');
// Consider waiting for better conditions
}
Order Errors (0x3001 - 0x3020)#
| Code | Name | Description | Resolution |
|---|---|---|---|
0x3001 | InvalidQuantity | Order quantity is invalid (zero or exceeds maximum) | Use valid quantity (> 0) |
0x3002 | OrderbookFull | Order book side has reached its configured capacity | Wait for orders to clear or use IOC |
0x3003 | OrderNotFound | Order not found in the order book | Order may have been filled or cancelled |
0x3004 | WouldCross | PostOnly order would immediately match (cross the spread) | Adjust price or use Limit order |
0x3005 | PriceTooLow | Price is too low (must be at least 1 basis point) | Use price >= 1 bps |
0x3006 | PriceTooHigh | Price is too high (must be less than 10000 basis points) | Use price < 10000 bps |
0x3007 | SlippageExceeded | IOC fill would cross the supplied worst acceptable price | Loosen slippage or improve price |
0x3008 | InsufficientFill | IOC filled fewer units than min_fill_quantity required | Lower min fill or wait for more liquidity |
0x3009 | NoFillForIoc | IOC order matched no resting liquidity | Use Limit/PostOnly or wait for liquidity |
0x300A | SelfTradeAbort | Self-trade encountered while self-trade behavior is Abort | Cancel/modify own resting order first |
0x300B | PostOnlyModeActive | IOC submitted while protocol is in PostOnly mode | Submit Limit or PostOnly |
0x300C | OrderNotExpired | Reclaim target is not expired or flagged expired-claimable | Wait until the order is reclaimable |
0x300D | InsufficientBalance | Taker balance is below required collateral/shares | Fund the relevant token account |
0x300E | MaxTotalSharesExceeded | New paired issuance would exceed the market's per-side issuance cap | Reduce new issuance or update the cap |
0x300F | AuthorityClaimNotEligible | Authority timelock has not elapsed | Wait until the eligible timestamp |
0x3010 | InsufficientFreeBalance | Free-funds balance below required amount | Ensure sufficient free-funds balance |
0x3011 | MinRestingNotionalNotMet | Resting order/remainder below configured notional floor | Increase size or use IOC |
0x3012 | OrderPriceOutOfBand | Maker price falls outside the allowed band around mid | Adjust price to within ±1000 bps of mid |
0x3013 | TraderLedgerFull | Trader ledger has reached maximum capacity | Evacuate an idle free-only slot to its owner, or settle/withdraw an existing position |
0x3014 | OrderbookNotEmpty | Cannot close market; orderbook still has resting orders | Cancel all orders before closing |
0x3015 | TraderLedgerNotAllocated | Trader ledger PDA not yet allocated | Run EnsureTraderLedgerSpace prelude first |
0x3016 | TraderLedgerOversized | Trader ledger account exceeds expected size | Report as bug |
0x3017 | OrderbookTreeCorruption | Deep orderbook tree links are internally inconsistent | Report as bug |
0x3018 | InternalInvariantViolated | Internal order processing invariant was violated | Report as bug |
0x3019 | BookConsistencyInvariantViolated | Orderbook slot counts or cached best prices are inconsistent after mutation | Critical invariant violation; report as bug |
0x301A | CrossedBookInvariantViolated | Orderbook has a matchable crossed bid/ask pair after mutation | Critical invariant violation; report as bug |
0x301B | UnsupportedAccountVersion | Recognized account type has an unsupported layout version | Upgrade the program/SDK or drain the old layout |
0x301C | PositionMarketMismatch | ForceClose position does not belong to the supplied market | Supply the position's canonical market |
0x301D | PositionAlreadySettled | ForceClose position is already settled | No ForceClose action remains |
0x301E | ResidualShareLocks | ForceClose position retains ask-side share locks | Cancel or reclaim share-backed orders first |
0x301F | NothingToForceClose | ForceClose has no collateral or economic order progress to release | Do not retry this position |
0x3020 | InvalidOrderTypeForInstruction | Supplied order type is unsupported by the selected instruction | Use the instruction matching the order type |
Order Error Examples#
// Handle insufficient balance
if (error.code === 0x300d) {
const required = calculateCollateral(price, quantity);
console.log(`Need ${required} USDT to place this order`);
// Prompt user to deposit
}
// Handle PostOnly rejection
if (error.code === 0x3004) {
console.log('Your PostOnly order would match immediately');
// Either adjust price or switch to Limit
}
// Handle order not found
if (error.code === 0x3003) {
console.log('Order not found - may have been filled');
// Refresh order book state
}
Math Errors (0x4001)#
| Code | Name | Description | Resolution |
|---|---|---|---|
0x4001 | MathOverflow | Arithmetic overflow or underflow | Use smaller values or check inputs |
Math Error Example#
// This typically indicates a bug or extreme values
if (error.code === 0x4001) {
console.error('Math overflow detected - this should not happen');
console.error('Check your input values:', { price, quantity });
// Report as bug if values are reasonable
}
Account Errors (0x5001 - 0x500D)#
| Code | Name | Description | Resolution |
|---|---|---|---|
0x5001 | InvalidAccountType | Account discriminator does not match expected type | Use correct account |
0x5002 | InvalidAccountOwner | Account owner is not the expected program | Verify account ownership |
0x5003 | InvalidPDA | PDA derivation does not match expected seeds | Check PDA derivation |
0x5004 | AlreadyInitialized | Account has already been initialized | Use existing account |
0x5005 | InsolvencyDetected | Point-of-payout vault-coverage failure: a concrete token debit or payout would leave the market vault unable to cover its recorded liabilities | Critical error — report as bug |
0x5006 | UnauthorizedInitializer | Initializer is not the program's upgrade authority | Use the correct authority |
0x5007 | DuplicateAccount | Two mutable accounts in the same instruction share the same address | Use distinct accounts |
0x5008 | FailedToSerializeEvent | Internal event recorder failed to serialize | Report as bug |
0x5009 | FailedToFlushBuffer | Internal event recorder failed to flush buffer | Report as bug |
0x500A | InvalidRecorderPayloadLength | LOG payload length does not match declared count | Report as bug |
0x500B | InvalidRecorderVersion | LOG payload version is not recognized | Update client SDK |
0x500C | InvalidRecorderAuthorityKind | LOG payload authority kind is invalid | Report as bug |
0x500D | InvalidRecorderEventCount | LOG payload event count is out of range | Report as bug |
Account Error Examples#
// Handle PDA derivation errors
if (error.code === 0x5003) {
// Verify PDA derivation
const [expectedPda] = PublicKey.findProgramAddressSync(
[Buffer.from('seesaw'), Buffer.from('market'), marketIdBuffer],
programId
);
console.log('Expected PDA:', expectedPda.toString());
}
// Handle insolvency (critical)
if (error.code === 0x5005) {
console.error('CRITICAL: Insolvency detected - report as bug immediately');
// This indicates a protocol-level issue
}
Position Errors (0x6001 - 0x6002)#
| Code | Name | Description | Resolution |
|---|---|---|---|
0x6001 | ProtocolPaused | Protocol is paused | Wait for protocol to resume |
0x6002 | OwnerPayoutEscrowMismatch | Owner payout escrow does not match | Pass the escrow and vault PDAs of the position owner and the market currency; claim with the recorded rent payer |
Position Error Example#
// Handle protocol pause
if (error.code === 0x6001) {
console.log('Protocol is currently paused');
// Check announcements for more info
}
Token Errors (0x7001 - 0x7006)#
| Code | Name | Description | Resolution |
|---|---|---|---|
0x7001 | CannotExpire | Cannot expire market (not past expiration window or already resolved) | Wait for expiration window |
0x7002 | InvalidRedemption | Cannot redeem tokens that are not winning | Only winning shares pay out |
0x7003 | InvalidMint | Token account mint does not match expected mint | Use correct token mint |
0x7004 | SolvencyInvariantViolated | Post-mutation runtime invariant assertion: the solvency invariant was re-checked after a share or fee mutation and failed | Critical — report as bug |
0x7005 | InvalidSettlementMintDecimals | Settlement mint decimals must be between 6 and 9 | Use a mint with 6 to 9 decimals |
0x7006 | CollateralMirrorInconsistent | Terminal redemption found an inverted collateral mirror without slot-share provenance | Report as state-consistency bug |
Solvency alarm: monitor the two distinct codes 0x5005 (InsolvencyDetected)
and 0x7004 (SolvencyInvariantViolated) together. Both signal a solvency
breach, differing by which layer detected it.
Token Error Examples#
// Handle losing position redemption attempt
if (error.code === 0x7002) {
console.log('These shares did not win - payout is 0');
}
// Handle market expiration check
if (error.code === 0x7001) {
console.log('Market cannot be expired yet - check expiration window');
}
Fee, Referral, Spline, Builder, and Bounded-Operation Errors (0x8001 - 0x804C)#
| Code | Name | Description | Resolution |
|---|---|---|---|
0x8001 | InvalidFeeCurve | The taker fee coefficient exceeds the governed range | Use a coefficient from 0 through 10,000 bps |
0x8002 | InvalidFeeSplit | Fee split shares do not sum to exactly 10,000 | Ensure splits sum to 10000 bps |
0x8003 | ReferrerAlreadySet | Referrer has already been set for this account | Cannot change referrer once set |
0x8004 | SelfReferralForbidden | Account cannot refer itself | Use a different referrer address |
0x8005 | ReferrerTreasuryMismatch | Referrer treasury PDA does not match expected derivation | Use correct treasury PDA |
0x8006 | AccumulatedAmountZero | Nothing to claim — accumulated amount is zero | Wait for earnings to accumulate |
0x8007 | FeeConfigRateLimit | Fee-governance update called within the shared rate-limit window | Wait for rate-limit window to expire |
0x8008 | TreasuryIndexOutOfRange | Treasury recipient index is >= MAX_TREASURY_RECIPIENTS (8) | Use an index in [0, 8) |
0x8009 | TreasuryRecipientMismatch | Provided treasury token account does not match stored recipient | Use the correct treasury token account |
0x800A | InvalidTreasuryRecipient | Treasury recipient address is invalid (uninitialized or wrong mint) | Use a valid, funded token account |
0x800B | DuplicateTreasuryRecipient | Two entries in the treasury recipient array share the same address | Use distinct token accounts |
0x800C | TreasuryUpdateRateLimit | UpdateTreasuryRecipients called within rate-limit window | Wait for rate-limit window to expire |
0x800D | OperationalParamsRateLimit | UpdateOperationalParams called within rate-limit window | Wait for rate-limit window to expire |
0x800E | MicrostructureRateLimit | Global tick/min or market-local cap update called within its cooldown | Wait for the applicable cooldown |
0x800F | ReferralCacheMismatch | Referral binding differs from or corrupts the immutable cache | Refresh canonical referral and position state |
0x8010 | InvalidReferralRollupBatch | Rollup batch shape, ordering, or common attribution is invalid | Rebuild a canonical sorted batch |
0x8011 | ReferralFeesPending | Terminal close is blocked by unswept referral liability | Roll up pending referral fees before closing |
0x8012 | ReferralLiabilityMismatch | Market and position referral liabilities do not reconcile | Stop and reconcile protocol state |
0x8013 | InvalidSplineConfig | Spline operational settings are invalid | Correct the spline configuration |
0x8014 | InstructionNotYetEnabled | Dormant or frozen instruction behavior is not enabled | Do not retry; wait for a separately reviewed protocol activation |
0x8015 | InvalidSplineShape | Spline levels are malformed or have no executable quote | Submit a valid bounded spline |
0x8016 | UnauthorizedSplineMaker | Caller is not the spline's recorded creator | Use the recorded creator signer |
0x8017 | StaleSequence | Spline update sequence did not strictly increase | Refresh state and use a newer sequence |
0x8018 | InvalidMidPrice | Spline midpoint is outside the executable range | Use a midpoint strictly between the price bounds |
0x8019 | InvalidSplineSeries | Spline and market feed/duration series do not match | Attach a spline for the canonical market series |
0x801A | InsufficientSplineCommitment | Spline collateral is below the configured exposure floor | Increase committed collateral |
0x801B | SplineGenerationMismatch | Signed quote targets a different program-owned shape generation | Read the current spline and rebuild the quote |
0x801C | InvalidSplineQuoteOrigin | Signed quote origin is negative, future-dated, or too old | Rebuild with the current Unix origin and submit within the configured age bound |
0x801D | MissingSplineAccounts | Required canonical creator spline account is absent or malformed | Supply the directly-derived creator spline account in the canonical trailing position. |
0x801E | MakerRebateShareTooHigh | Maker fee share exceeds the 4,000-bps cap | Lower the maker rebate share |
0x801F | MakerRebateRestBoundTooHigh | Maker resting-age requirement exceeds one hour | Lower the resting-age requirement |
0x8020 | SeatsStillAttached | Close is blocked by attached spline seats or managed-quote states | Recover or settle every attached spline seat |
0x8021 | OrderIdExhausted | Next insertion sequence cannot form an opaque order ID | Stop placement and migrate/recover the market |
0x8022 | RestingNotionalTooSmall | Partial reduction leaves a nonzero remainder below the floor | Cancel fully or leave a larger remainder |
0x8023 | SplineCommitmentUnderflow | A spline commitment decrement exceeded the recorded commitment | Stop and reconcile spline/market accounting |
0x8024 | InvalidSequenceAnchor | Sequence anchor is future-dated or precedes the signed window | Rebuild the publication with a current slot anchor |
0x8025 | AuthorityEpochMismatch | Publication targets a different authority epoch | Refresh authority state and rebuild the publication |
0x8026 | QuoteSessionExpired | Delegate publication is past its session expiry | Ask the creator to renew the delegate session |
0x8027 | InvalidQuoteValidityWindow | Quote profile or signed slot bounds are invalid | Use ordinary bounds 0/0 or a valid protected span of at most 150 slots |
0x8028 | SplineReaderWritable | Publication reader account is writable | Mark the market, vault, and metadata readers read-only |
0x8029 | QuoteProfileDowngrade | Delegate publication weakens the stored profile | Keep or tighten the profile, or have the creator change it |
0x802A | SelfBuilderForbidden | Builder is the trader or the zero key | Name a different builder wallet |
0x802B | BuilderApprovalMismatch | Builder approval PDA, trader, owner or layout is wrong | Pass the canonical approval for this trader and builder |
0x802C | BuilderApprovalExpired | Builder approval expired, or a past expiry was requested | Renew the approval with ApproveBuilder |
0x802D | BuilderApprovalNotYetActive | Builder approval was created or updated in this slot | Retry the order in a later slot |
0x802E | BuilderTokenAccountMismatch | Builder token account mint, owner, state or distinctness | Pass the builder's own settlement-mint token account |
0x802F | InvalidBuilderShare | Approval max_builder_bps is outside 1..=10_000 | Approve a share between 1 and 10,000 bps |
0x8030 | ClientOrderIdNotFound | The owner has no allocated order with that client order ID | Refresh the owner's orders and verify the ID |
0x8031 | CancelSessionMismatch | An active session is absent or its nonce or strategy scope differs | Read the trader seat and use the current session's nonce and scope |
0x8032 | CancelSessionActive | A delegate tried to replace a session belonging to another principal | Let the owner manage the active session |
0x8033 | SeatBelowLiquidityFloor | Attach or shape update fails the depth part of the liquidity floor | Add depth within the band or raise the commitment |
0x8034 | SeatStalenessOff | A spline seat would have max_quote_age_seconds = 0 | Set a nonzero quote age |
0x8035 | SeatCapReached | The market already has the maximum number of active spline seats | Wait for a seat to become dormant or leave |
0x8036 | SeatMissTooSoon | The last recorded floor miss is younger than the sample interval | Retry after the sample interval |
0x8037 | SeatMissesBelowThreshold | The current window holds fewer misses than the dormancy threshold | Record more misses before calling dormancy |
0x8038 | SeatMeetsFloor | The spline seat meets the liquidity floor | Do not flag a seat that meets the floor |
0x8039 | DuplicateSeat | A spline seat appears twice in a seat vector | Supply each seat once |
0x803A | SeatSeriesMismatch | The supplied maker series is not the seat's series | Supply the series the seat was funded from |
0x803B | SubscriptionDisabled | The series subscription is off | Ask the maker to enable the subscription |
0x803C | SubscriptionSpacing | The market is inside the series' spacing interval | Crank a later market |
0x803D | SubscriptionMarketTooOld | The market is older than the series attach age | Crank a newer market |
0x803E | SubscriptionMarketParamsRejected | Market parameters are outside the series' accepted ranges | Crank a market inside the ranges |
0x803F | SubscriptionExternalMarket | The series crank does not serve external markets | Attach manually with AttachSeat |
0x8040 | SubscriptionConcurrencyReached | The series already has its maximum attached seats | Wait for a seat of the series to leave |
0x8041 | SeriesLamportBudgetInsufficient | The series' lamports cannot cover rent, bounty and reward | Top up the series lamports |
0x8042 | BalanceBoundViolated | A balance is below its asserted lower bound | Rebuild the route with fresh balances |
0x8043 | OrderbookNeedsReclaim | Bounded matching reached a lane that needs permissionless cleanup | Reclaim eligible orders and refresh the book |
0x8044 | ManagedOrderUseBatchReclaim | A slot-managed order requires the authenticated batch reclaim route | Use ReclaimExpiredOrders with the applicable accounts |
0x8045 | InvalidCloserRewardParams | A closer-reward cap or ramp is 0 or above its governed maximum | Use caps in 1..=50,000,000 lamports and ramps in 1..=604,800 seconds |
0x8046 | ReclaimBatchEmpty | No requested order ID is left on the book to reclaim | Treat as already reclaimed; refresh the book before retrying |
0x8047 | SeatRegistryMismatch | The market's active-seat registry disagrees with its seat count | Pass the seats the market registry lists; report if it persists |
0x8048 | QuoteProgramInvalid | A quote program failed static validation at install | Fix the program header, ops or caps and reinstall |
0x8049 | QuoteProgramProbeFailed | The install or params probe produced no quote or a shallow ladder | Adjust params or offsets so both sides quote at full depth |
0x804A | QuoteProgramCorrupt | Stored quote-program bytes failed decode | Reinstall the program with UpdateSeatProgram |
0x804B | QuotePythAccountRequired | A supplied seat's program reads Pyth and the market's PriceUpdateV2 was omitted | Pass the market's Pyth price account after the seats |
0x804C | QuoteBudgetInsufficient | An exact-input IOC buy cannot afford one lot at the best executable price | Raise max_quote_input or retry when the book moves |
Fee Error Examples#
// Handle fee split validation
if (error.code === 0x8002) {
console.log('Fee splits must sum to exactly 10000 bps');
}
// Handle already-set referrer
if (error.code === 0x8003) {
console.log('Referrer is already set and cannot be changed');
}
Authority and Emergency Errors (0x9001 - 0x9004)#
| Code | Name | Description | Resolution |
|---|---|---|---|
0x9001 | NoPendingAuthority | ClaimAuthority called but no authority rotation is pending | Initiate an authority rotation first |
0x9002 | UnauthorizedClaim | Signer does not match the pending authority address | Use the correct pending authority key |
0x9003 | EmergencyDelayNotElapsed | Force-cancel delay has not elapsed after entering force-cancel mode | Wait until the configured delay elapses |
0x9004 | UnauthorizedPauser | Signer is neither config authority nor configured nonzero pauser | Use the authority or configured pauser |
External-Market and Launch-V2 Errors (0xA001 - 0xA012)#
| Code | Name | Description | Resolution |
|---|---|---|---|
0xA001 | WrongResolver | Signer does not match the market resolver authority | Use the bound resolver |
0xA002 | UnsupportedMarketKind | Market kind or leg count is unsupported | Use binary with two legs |
0xA003 | MarketHalted | New order placement is blocked | Use an allowed exit operation |
0xA004 | ExternalMarketInvalid | External-market inputs, provenance, or OpenDisabled open attempt is invalid | Correct the request or use an existing market |
0xA005 | InvalidPayoutNumerators | Active numerators do not sum to 10,000 or the inactive suffix is nonzero | Supply a canonical payout vector |
0xA006 | MarketMetaMismatch | Market metadata belongs to another market | Supply the canonical metadata PDA |
0xA007 | PreallocationReceiptMismatch | Receipt commitment, market, resolver, creator, or arguments differ | Supply the canonical receipt and committed arguments |
0xA008 | PreallocationReceiptNotActive | Receipt has already been consumed or reclaimed | Do not replay the completed lifecycle action |
0xA009 | PreallocationReclaimTooEarly | Non-creator caller attempted reclaim before the permissionless boundary | Have the creator reclaim or wait for the boundary |
0xA00A | PreallocationTargetMismatch | Prepared capacity, seats, derived size, or child bounds differ | Use the frozen external-market allocation targets |
0xA00B | PreallocationDataNotZero | Prepared child account contains initialized or nonzero data | Supply a vacant or wholly zero canonical child account |
0xA00C | PreallocationMarketExists | A live market or metadata account blocks begin or reclaim | Use the existing market or a new external reference |
0xA00D | ExternalCloseTimeOutOfRange | External market close time is outside the supported finite horizon | Use a close time within the one-year horizon |
0xA00E | ExternalExpiryDeadlineOverflow | External market expiry deadline cannot be represented as i64 | Reduce the close time or expiry window |
0xA00F | EconomicAccountVersionMismatch | Economic account layout or terminal weighting is invalid | Supply the current economic-account representation |
0xA010 | EconomicDeltaOverflow | Checked economic accounting arithmetic overflowed | Reduce the transition or split it |
0xA011 | NativeResolutionPolicyMismatch | Native resolution does not match the configured policy | Re-submit the canonical policy evidence |
0xA012 | NativeResolutionReasonInvalid | Native resolution reason is not valid for the transition | Supply a permitted resolution reason |
Source Result Errors (0xC001 - 0xC017)#
Witness-signed source results are checked against the profile policy and the deployment's witness registry (signed source results (unavailable reference)).
| Code | Name | Description | Recovery |
|---|---|---|---|
0xC001 | SourceClaimBindingMismatch | Source claim bindings do not match | Rebuild the instruction from the stored source-market state |
0xC002 | SourceInvalidTransition | Source-market transition is invalid | Read the market and source state and use a permitted transition |
0xC003 | SourceImmutableBindingMismatch | Source immutable binding mismatch | Use evidence for the exact stored source selection |
0xC004 | SourceInvalidDefinition | Invalid source definition | Rebuild the definition package from admitted source fields |
0xC005 | SourceManualResolutionForbidden | Manual source-market resolution forbidden | Submit witness-signed source results; there is no manual outcome |
0xC006 | SourceWindowNotAdmitted | Source window does not admit the operation | Read the source window and retry inside it, or use eligible expiry |
0xC007 | SourceReviewNotElapsed | Source review window has not elapsed | Wait until the stored review deadline |
0xC008 | SourceProfileDisabled | Source profile disabled | Read the profile status; eligible expiry remains available |
0xC009 | SourceUnsupportedProfile | Unsupported source profile | Select a profile compiled into this program |
0xC00A | SourceStateRevisionChanged | Source state revision changed | Re-read the source state and rebuild the transaction |
0xC00B | SourcePolicyNotEffective | Source policy not yet effective | Wait until the policy effective time |
0xC00C | SourceWitnessCountMismatch | Source witness count mismatch | Obtain signatures from the threshold of admitted witnesses |
0xC00D | SourceMarketKindUnsupported | Source market kind unsupported | Use a market kind the profile supports |
0xC00E | SourceCaptureWindowInvalid | Source capture window invalid | Obtain a result captured inside the admitted window |
0xC00F | SourceCaptureStale | Source capture stale | Obtain a fresh witness-signed result |
0xC010 | SourceCaptureFromFuture | Source capture from the future | Retry once the cluster clock has caught up |
0xC011 | WitnessSlotNotAdmitted | Witness slot not admitted | Use witnesses admitted in the deployment registry |
0xC012 | WitnessSlotRevoked | Witness slot revoked | Use witnesses whose slots are not revoked |
0xC013 | WitnessEpochMismatch | Witness epoch mismatch | Use the witness registry epoch the result was signed for |
0xC014 | WitnessSignatureInvalid | Witness signature invalid | Obtain a correctly signed result |
0xC015 | SourceFactOutOfRange | Source fact out of range | Reject the result; the source fact is outside the admitted range |
0xC016 | SourceOperationRedundant | Source operation redundant | Read the state; the operation has already taken effect |
0xC017 | SourceDefinitionPackageMismatch | Source definition package mismatch | Use the definition package bound to this market |
Codes outside the current dense category ranges are not defined by the program.
Error Handling Best Practices#
TypeScript Error Handler#
function handleSeesawError(error: any): string {
const code = error.code || error.error?.code;
const errorMessages: Record<number, string> = {
0x1001: 'Market already exists',
0x1002: 'Invalid market state for this operation',
0x1004: 'Trading has ended for this market',
0x2002: 'Oracle price is stale - try again shortly',
0x3001: 'Invalid order quantity',
0x300d: 'Insufficient balance for this order',
0x3004: 'PostOnly order would match - adjust price',
// Add more as needed
};
return errorMessages[code] || `Unknown error: ${code}`;
}
Retry Logic#
async function withRetry<T>(
fn: () => Promise<T>,
options: { maxRetries: number; retryableErrors: number[] }
): Promise<T> {
let lastError: any;
for (let i = 0; i < options.maxRetries; i++) {
try {
return await fn();
} catch (e: any) {
lastError = e;
if (!options.retryableErrors.includes(e.code)) {
throw e;
}
await sleep(1000 * Math.pow(2, i));
}
}
throw lastError;
}
// Use with oracle errors
await withRetry(() => snapshotPrice(market), {
maxRetries: 5,
retryableErrors: [0x2002], // StaleOracle
});
Error Code Quick Reference#
MARKET (0x10xx) ORACLE (0x20xx) ORDER (0x30xx)
├─ 0x1001 MarketExists ├─ 0x2001 OracleMismatch ├─ 0x3001 InvalidQuantity
├─ 0x1002 InvalidState ├─ 0x2002 StaleOracle ├─ 0x3002 OrderbookFull
├─ 0x1003 TradingNotStarted ├─ 0x2003 InvalidPrice ├─ 0x3003 OrderNotFound
├─ 0x1004 TradingEnded ├─ 0x2004 ConfidenceTooWide ├─ 0x3004 WouldCross
├─ 0x1005 AlreadyResolved ├─ 0x2005 FeedIdMismatch ├─ 0x3005 PriceTooLow
├─ 0x1006 MarketNotResolved ├─ 0x2006 InvalidOracleData ├─ 0x3006 PriceTooHigh
├─ 0x1007 TooEarly └─ 0x2007 OraclePriceJump ├─ 0x3007 SlippageExceeded
├─ 0x1008 EpochNotStarted ├─ 0x3008 InsufficientFill
├─ 0x1009 EpochNotEnded MATH (0x40xx) ├─ 0x3009 NoFillForIoc
├─ 0x100A NotOwner └─ 0x4001 MathOverflow ├─ 0x300A SelfTradeAbort
├─ 0x100B PositionsRemaining ├─ 0x300B PostOnlyModeActive
├─ 0x100C MarketCloseTimeout ACCOUNT (0x50xx) ├─ 0x300C OrderNotExpired
├─ 0x100D InvalidCreator ├─ 0x5001 InvalidAccountType ├─ 0x300D InsufficientBalance
├─ 0x100E VaultNotEmpty ├─ 0x5002 InvalidAccountOwner├─ 0x300E MaxTotalSharesExceeded
├─ 0x100F InvalidDuration ├─ 0x5003 InvalidPDA ├─ 0x300F AuthorityClaimNotEligible
└─ 0x1011 InvalidStateTransition├─ 0x5005 InsolvencyDetected├─ 0x3010 InsufficientFreeBalance
├─ 0x5006 UnauthorizedInitializer├─ 0x3011 MinRestingNotionalNotMet
POSITION (0x60xx) ├─ 0x5007 DuplicateAccount ├─ 0x3012 OrderPriceOutOfBand
└─ 0x6001 ProtocolPaused ├─ 0x5008 FailedToSerializeEvent├─ 0x3013 TraderLedgerFull
├─ 0x5009 FailedToFlushBuffer├─ 0x3014 OrderbookNotEmpty
TOKEN (0x70xx) ├─ 0x500A InvalidRecorderPayloadLength├─ 0x3015 TraderLedgerNotAllocated
├─ 0x7001 CannotExpire ├─ 0x500B InvalidRecorderVersion├─ 0x3016 TraderLedgerOversized
├─ 0x7002 InvalidRedemption ├─ 0x500C InvalidRecorderAuthorityKind├─ 0x3017 OrderbookTreeCorruption
├─ 0x7003 InvalidMint └─ 0x500D InvalidRecorderEventCount├─ 0x3018 InternalInvariantViolated
├─ 0x7004 SolvencyInvariantViolated └─ 0x301A CrossedBookInvariantViolated
└─ 0x7005 InvalidSettlementMintDecimals
FEE/REFERRAL/TREASURY (0x80xx) AUTHORITY/GOVERNANCE/EMERGENCY (0x90xx)
├─ 0x8001 InvalidFeeCurve ├─ 0x9001 NoPendingAuthority
├─ 0x8002 InvalidFeeSplit ├─ 0x9002 UnauthorizedClaim
├─ 0x8005 ReferrerTreasuryMismatch ├─ 0x9003 EmergencyDelayNotElapsed
├─ 0x8006 AccumulatedAmountZero ├─ 0x9004 UnauthorizedPauser
├─ 0x8008 TreasuryIndexOutOfRange
├─ 0x8009 TreasuryRecipientMismatch
├─ 0x800A InvalidTreasuryRecipient
├─ 0x800B DuplicateTreasuryRecipient
├─ 0x800C TreasuryUpdateRateLimit
├─ 0x800D OperationalParamsRateLimit
├─ 0x800E MicrostructureRateLimit
├─ 0x800F ReferralCacheMismatch
├─ 0x8010 InvalidReferralRollupBatch
├─ 0x8011 ReferralFeesPending
├─ 0x8012 ReferralLiabilityMismatch
├─ 0x8013 InvalidSplineConfig
├─ 0x8014 InstructionNotYetEnabled
├─ 0x8015 InvalidSplineShape
├─ 0x8016 UnauthorizedSplineMaker
├─ 0x8017 StaleSequence
├─ 0x8018 InvalidMidPrice
├─ 0x8019 InvalidSplineSeries
├─ 0x801A InsufficientSplineCommitment
├─ 0x801B SplineGenerationMismatch
├─ 0x801C InvalidSplineQuoteOrigin
├─ 0x801D MissingSplineAccounts
├─ 0x801E MakerRebateShareTooHigh
├─ 0x801F MakerRebateRestBoundTooHigh
├─ 0x8020 SeatsStillAttached
├─ 0x8021 OrderIdExhausted
├─ 0x8022 RestingNotionalTooSmall
├─ 0x8023 SplineCommitmentUnderflow
├─ 0x8024 InvalidSequenceAnchor
├─ 0x8025 AuthorityEpochMismatch
├─ 0x8026 QuoteSessionExpired
├─ 0x8027 InvalidQuoteValidityWindow
├─ 0x8028 SplineReaderWritable
├─ 0x8029 QuoteProfileDowngrade
├─ 0x802A SelfBuilderForbidden
├─ 0x802B BuilderApprovalMismatch
├─ 0x802C BuilderApprovalExpired
├─ 0x802D BuilderApprovalNotYetActive
├─ 0x802E BuilderTokenAccountMismatch
├─ 0x802F InvalidBuilderShare
├─ 0x8030 ClientOrderIdNotFound
├─ 0x8031 CancelSessionMismatch
├─ 0x8032 CancelSessionActive
├─ 0x8033 SeatBelowLiquidityFloor
├─ 0x8034 SeatStalenessOff
├─ 0x8035 SeatCapReached
├─ 0x8036 SeatMissTooSoon
├─ 0x8037 SeatMissesBelowThreshold
├─ 0x8038 SeatMeetsFloor
├─ 0x8039 DuplicateSeat
├─ 0x803A SeatSeriesMismatch
├─ 0x803B SubscriptionDisabled
├─ 0x803C SubscriptionSpacing
├─ 0x803D SubscriptionMarketTooOld
├─ 0x803E SubscriptionMarketParamsRejected
├─ 0x803F SubscriptionExternalMarket
├─ 0x8040 SubscriptionConcurrencyReached
├─ 0x8041 SeriesLamportBudgetInsufficient
├─ 0x8042 BalanceBoundViolated
├─ 0x8043 OrderbookNeedsReclaim
├─ 0x8044 ManagedOrderUseBatchReclaim
├─ 0x8045 InvalidCloserRewardParams
├─ 0x8046 ReclaimBatchEmpty
├─ 0x8047 SeatRegistryMismatch
├─ 0x8048 QuoteProgramInvalid
├─ 0x8049 QuoteProgramProbeFailed
├─ 0x804A QuoteProgramCorrupt
├─ 0x804B QuotePythAccountRequired
└─ 0x804C QuoteBudgetInsufficient
EXTERNAL MARKET (0xA0xx)
├─ 0xA001 WrongResolver
├─ 0xA002 UnsupportedMarketKind
├─ 0xA003 MarketHalted
├─ 0xA004 ExternalMarketInvalid
├─ 0xA005 InvalidPayoutNumerators
├─ 0xA006 MarketMetaMismatch
├─ 0xA007 PreallocationReceiptMismatch
├─ 0xA008 PreallocationReceiptNotActive
├─ 0xA009 PreallocationReclaimTooEarly
├─ 0xA00A PreallocationTargetMismatch
├─ 0xA00B PreallocationDataNotZero
├─ 0xA00C PreallocationMarketExists
├─ 0xA00D ExternalCloseTimeOutOfRange
└─ 0xA00E ExternalExpiryDeadlineOverflow
Strategy Limit Errors (0xD001 - 0xD010)#
| Code | Name | Description | Recovery |
|---|---|---|---|
0xD001 | StrategyMarketNotAllowed | Market is outside the configured market list | Choose an allowed market or ask the owner to update the strategy |
0xD002 | StrategyCurrencyNotAllowed | Settlement mint is outside the configured mint list | Choose a market with an allowed settlement mint |
0xD003 | StrategyOrderCapitalExceeded | Order would exceed the per-order quote limit | Reduce the quantity |
0xD004 | StrategyCapitalBudgetExceeded | Order debit would exceed the remaining turnover budget | Reduce the quantity or have the owner review the capital budget |
0xD005 | StrategyInventoryExceeded | A buy would exceed the strategy's position ceiling | Reduce the order or free inventory capacity |
0xD006 | StrategyFeeExceeded | Fill taker fee exceeds the configured bound | Refresh fees and review the strategy's fee bound |
0xD007 | StrategySlippageExceeded | Order limit is too far from the reference price | Refresh the market and review the order price |
0xD008 | StrategyExpired | The expiry has passed or it would leave a resting order with less than 60 seconds | Have the owner review the strategy expiry |
0xD009 | StrategyActionNotAllowed | The action is missing from the strategy's allowed actions | Check the action permissions set by the owner |
0xD00A | StrategyStopped | Placement, batch placement, or merge was submitted under a stopped strategy | Have the owner review strategy status |
0xD00B | StrategyDelegateMismatch | The signer does not match the expected owner or delegate | Check the signer and strategy account |
0xD00C | StrategyNotYetActive | A delegate acted in the configuration slot or earlier | Retry in a later slot |
0xD00D | StrategyDestinationNotAllowed | Delegate withdrawal targets a destination outside the strategy's permissions | Use a permitted settlement token account |
0xD00E | StrategyLeaseTooShort | A resting covered order has less than the minimum lease for a reason other than strategy expiry | Review the order's expiry and the market window |
0xD00F | StrategyAccountMismatch | Strategy identity or account layout does not match the instruction | Refresh the canonical strategy account and its scope |
0xD010 | InvalidStrategyConfig | Strategy configuration violates an argument bound | Review the strategy route arguments in spec/IX.md §61.5 |
Confidential Market Errors (0xE001 - 0xE0EA)#
| Code | Name | Meaning |
|---|---|---|
0xE001 | ConfidentialAccountMismatch | The owner, discriminator, exact size or address does not identify a confidential market. |
0xE002 | ConfidentialInstanceNonceInvalid | The instance nonce is all zero. |
0xE003 | ConfidentialProfileInactive | The requested profile is unknown or inactive. |
0xE004 | ConfidentialPolicyInvalid | A required policy term is absent, noncanonical or inconsistent. |
0xE005 | ConfidentialCreationProofUnavailable | The requested profile requires a private creation proof. |
0xE006 | ConfidentialAdapterNotAdmitted | The adapter or its version is outside the admitted set. |
0xE007 | ConfidentialTerminalAlreadyRecorded | The market already has a terminal record. |
0xE008 | ConfidentialTerminalWindowOpen | The dispute window is open or the timeout has yet to arrive. |
0xE009 | ConfidentialTerminalEvidenceRejected | The evidence or resolution window fails the authenticated terminal rules. |
0xE00A | ConfidentialCapExceeded | Applying the confidential effect or job max_charge would exceed the live market cap. |
0xE00B | ConfidentialEffectMismatch | The confidential effect statement does not match its authenticated inputs or outputs. |
0xE00C | ConfidentialDuplicateCredit | A confidential credit identifier was already applied or duplicated in the statement. |
0xE00D | ConfidentialInputLocked | A confidential custody input is already locked by an active job. |
0xE00E | ConfidentialStepNotCurrent | The supplied confidential job step does not match the current cursor or manifest hash. |
0xE00F | ConfidentialManifestMismatch | The confidential job step or admission-page manifest root does not match the header. |
0xE010 | ConfidentialJobNotReady | The confidential job is not in the required phase for this transition. |
0xE011 | ConfidentialJobDeadlineNotPassed | The confidential job deadline slot has not yet passed. |
0xE012 | ConfidentialJobAlreadyFinal | The confidential job has already reached a final branch. |
0xE013 | ConfidentialBudgetInsufficient | The confidential work budget cannot cover the required prepaid step rewards. |
0xE014 | ConfidentialCapRuleViolation | The requested confidential cap change violates the increase-only or cap_max rule. |
0xE015 | ConfidentialCloseObligationsLive | The confidential market still has live obligations or an active job and cannot close. |
0xE016 | ConfidentialEngineNotAdmitted | The requested confidential job engine id is not admitted for this market. |
0xE017 | ConfidentialCursorCallerNotAllowed | The caller is not allow-listed to advance the confidential job cursor. |
0xE018 | ConfidentialJobActive | Another confidential job is currently active on this market. |
0xE019 | ConfidentialJobPagesIncomplete | Not all expected confidential job admission pages have been appended. |
0xE01A | ConfidentialGuardPinViolation | A B12 custody guard pin (G1-G12) failed before any SPP CPI. |
0xE01B | ConfidentialForeignCustodyInput | A custody transaction attempted to spend a foreign custody input. |
0xE01C | ConfidentialObjectSchemaMismatch | A custody object record failed schema, version, or commitment checks. |
0xE01D | ConfidentialObjectKindNotPermitted | The custody object claim kind is not permitted for this transition. |
0xE01E | ConfidentialFundingInputNotOwned | The funding input is not owned by the funding principal. |
0xE01F | ConfidentialFundingAmountMismatch | The funded escrow amount does not match the proof statement. |
0xE020 | ConfidentialStepCursorMismatch | The preparation step index does not match the active job cursor. |
0xE021 | ConfidentialStepOutputMismatch | The preparation step output does not match the recomputed object. |
0xE022 | ConfidentialPrivateRecipeRequiresOwner | A private-recipe transition requires the object owner signature and proof. |
0xE023 | ConfidentialRefundBranchNotAborted | Refund requested on a job whose branch is not Aborted. |
0xE024 | ConfidentialPushNotOptedIn | Push refund requested without an opted-in push policy and nullifier key. |
0xE025 | ConfidentialObjectPageFull | The confidential object page is full (32 records). |
0xE026 | BundleOutOfScope | Confidential claim bundle is outside the allow-list {1,3,5,7,9,11}. |
0xE027 | RecipientNotIdentified | Confidential claim recipient or originator identity is missing or does not match. |
0xE028 | ClaimDeriveMismatch | On-chain deterministic Derive claim identifier mismatch. |
0xE029 | DuplicatePositionRole | Duplicate (position, role) or claim_id on the claim page. |
0xE02A | KindNotAcceptedByRoute | Claim kind is not accepted by this route. |
0xE02B | ZeroOrSmallOrderKey | Public key is all-zero or a canonical small-order torsion point. |
0xE02C | BranchNotCommitted | Claim page branch is not Committed or Unconditional. |
0xE02D | BranchNotAborted | Claim page branch is not Aborted. |
0xE02E | PushNotOptedIn | Push delivery requires opt-in policy and a non-zero nullifier key. |
0xE02F | PushGraceWindowOpen | Push delivery grace window has not yet elapsed. |
0xE030 | DelegateCannotBindLate | A delegate cannot perform late-binding pull materialization. |
0xE031 | CapsuleSlotNotOwned | Signer does not own the confidential capsule slot. |
0xE032 | CapsuleSlotBound | Confidential capsule slot is already bound and frozen. |
0xE033 | CapsuleProofMismatch | VRD-E capsule proof or public-input hash mismatch. |
0xE034 | RfqQuoteExpired | Confidential RFQ quote has expired. |
0xE035 | RfqTermsInvalid | Confidential RFQ quote terms (q, c, side) are invalid. |
0xE036 | RfqNonceReused | Confidential RFQ quote nonce was reused. |
0xE037 | RfqPreparationCount | Confidential RFQ preparation count is out of bounds. |
0xE038 | RfqCellUnderBacked | Confidential RFQ cell backing does not equal q. |
0xE039 | RfqFeeMismatch | Confidential RFQ fee does not match policy amount or split. |
0xE03A | RfqSignatureMissing | Confidential RFQ activation requires both maker and taker signatures. |
0xE03B | RfqBundleOutOfScope | Confidential RFQ activation bundle is not 1 or 3. |
0xE03C | CellNotTerminal | Confidential market has no terminal record yet. |
0xE03D | RecipeMismatch | Confidential cell recipe opening does not match its commitment. |
0xE03E | OutputOrderViolation | Settlement outputs violate fixed (maker, taker) party order. |
0xE03F | PayoutAmountMismatch | Settlement payout amounts do not match the payout table or backing. |
0xE040 | CellAlreadySettled | Confidential cell has already been settled. |
0xE041 | PublicSettlementNotAllowed | Public cell settlement is only allowed for bundles 5 and 9. |
0xE042 | OpaqueSettlementBlocked | Opaque settlement bundle is blocked. |
0xE043 | RoleMarkerPayoutMismatch | Role marker and payout records do not match (cell_id, role_index). |
0xE044 | MirrorResultSubjectMismatch | Mirror result subject does not match the confidential market. |
0xE045 | MirrorSourceNotFinal | Companion mirror source state is not final. |
0xE046 | MirrorWeightsInvalid | Mirror payout weights violate d > 0 && nY + nN == d. |
0xE047 | MirrorProfileNotAdmitted | Mirror source profile is not admitted. |
0xE048 | MirrorResidualPolicyInvalid | Mirror residual policy is invalid. |
0xE049 | MirrorPayoutMismatch | Mirror payout outputs do not match backing or formula. |
0xE04A | MirrorPrivatePredicateBlocked | Private predicate over admitted source evidence is blocked by UC-04. |
0xE04B | CellResolved | Early close or novation is forbidden once the market is terminal. |
0xE04C | AgreementDeadlinePassed | Agreement deadline slot has passed. |
0xE04D | HolderSignatureMissing | One or more current right holders did not sign. |
0xE04E | AgreementBindingMismatch | Agreement digest binding mismatch. |
0xE04F | AllocationNotBacking | Agreed outputs do not sum to cell backing. |
0xE050 | AcknowledgementMissing | Unchanged holder novation acknowledgement is missing. |
0xE051 | ShapeUnsupported | Cell shape or profile is unsupported for early close/novation. |
0xE052 | AssignmentNotPreserving | Assignment fails opposite-payoff or backing preservation. |
0xE053 | AssignmentCapsuleMissing | Bound VRD-E capsule slot is missing for assignment. |
0xE054 | ReassignBranchNotFinal | Claim branch is not Committed or Unconditional for reassignment. |
0xE055 | ReassignPolicyForbids | Market policy forbids claim reassignment. |
0xE056 | HolderSignatureInvalid | Holder signature is missing or invalid. |
0xE057 | RekeyEconomicsChanged | Rekey attempted to alter cell economics or branch. |
0xE058 | AssignmentBlockedProfile | Assignment profile is blocked (UC-05/UC-02b/UC-01). |
0xE059 | FillExceedsRemaining | Partial fill exceeds remaining order quantity. |
0xE05A | RemainingVersionStale | Remaining order version is stale. |
0xE05B | FillPremiumNotIntegral | Partial fill premium or escrow amount is not integral. |
0xE05C | FillLimitPriceViolation | Partial fill violates limit price or schedule bounds. |
0xE05D | ScheduleAmendmentForbidden | Amending a posted remaining order schedule is forbidden. |
0xE05E | RemainderNotExpired | Remaining order has not expired and maker did not cancel. |
0xE05F | FillBlockedProfile | Partial fill profile is blocked. |
0xE060 | CountedProgramMismatch | Counted-lot program or descriptor mismatch. |
0xE061 | CopyRangeInvalid | Counted-lot copy range or power-of-2 packing is invalid. |
0xE062 | CountedRunNotHomogeneous | Counted-lot run is not homogeneous. |
0xE063 | CountedBoundExceeded | Counted-lot profile bound exceeded. |
0xE064 | CountedBlockedProfile | Counted-lot profile is blocked. |
0xE065 | ClassMismatch | Cell class accounting mismatch. |
0xE066 | DyadicPartitionInvalid | Dyadic partition is not canonical. |
0xE067 | DyadicNeedsAllocation | Dyadic replacement requires buffer/residual allocation. |
0xE068 | ReceiptMisuse | One-use replacement receipt misused. |
0xE069 | DyadicSignerMissing | Dyadic replacement holder signature missing. |
0xE06A | HiddenPrincipalBlocked | Hidden-principal accounting is blocked by UC-01. |
0xE06B | SplitOperatorMismatch | Split operator does not match derive_operator(predecessor_kind, depth). |
0xE06C | SplitCoverageInvalid | Split children do not cover parent backing + buffer. |
0xE06D | BufferUnderfunded | Split buffer escrow is underfunded. |
0xE06E | SplitPreservationFailed | Unilateral split failed pointwise preservation. |
0xE06F | MergeIncompatible | Cells are incompatible for merge. |
0xE070 | SplitBoundExceeded | Split depth, children, or residual bound exceeded. |
0xE071 | SplitDeliveryBlocked | Split delivery profile is blocked (UC-02b/UC-01). |
0xE072 | SplitSignerMissing | Required split or buffer-return signer missing. |
0xE073 | FeeAlreadyPaid | Action fee has already been assessed and paid. |
0xE074 | FeeIdentityReset | Attempt to reset or regress sealed action identity/generation. |
0xE075 | FeeRecipientNotSealed | Fee recipient root is not sealed. |
0xE076 | FeeGroupInvalid | Fee share group exceeds 10,000 bps. |
0xE077 | FeeRewardUnfunded | Fee reward escrow is unfunded. |
0xE078 | FeeProfileBlocked | Fee profile is blocked (UC-05/UC-02b). |
0xE079 | ClosureObligationLive | Covered page still contains a live unspent obligation. |
0xE07A | ClosureCertificateMissing | Closure certificate is missing or mismatched. |
0xE07B | StorageSoleEvidence | Target account is sole evidence and cannot be reclaimed. |
0xE07C | MarketPagesUncertified | Market still has uncertified pages. |
0xE07D | ClosureProfileBlocked | Closure profile is blocked. |
0xE07E | CurrencyAssetMismatch | Settlement currency commitment does not match market. |
0xE07F | CurrencyAdapterBlocked | Currency adapter is not admitted. |
0xE080 | CurrencyNotAdmittedForExposure | Currency is not admitted for new exposure. |
0xE081 | OrderOwnerMismatch | Order owner does not match signer. |
0xE082 | OrderNonceReused | Order admission nonce was reused. |
0xE083 | OrderEscrowInvalid | Order escrow object is invalid or underfunded. |
0xE084 | OrderAdmissionProofInvalid | Order admission proof verification failed. |
0xE085 | EpochCutoffPassed | Epoch cutoff slot has passed. |
0xE086 | EpochLogFull | Confidential epoch log page is full. |
0xE087 | DispositionFinal | Order or epoch disposition is already final. |
0xE088 | OrderProfileBlocked | Order admission profile is blocked. |
0xE089 | RevealNotInSet | Reveal order is not in the committed epoch set. |
0xE08A | RevealOwnerMismatch | Reveal caller is not owner or delegate. |
0xE08B | RevealWindowClosed | Epoch reveal window has closed. |
0xE08C | ActivationOverlap | Standing order is already activated in another epoch. |
0xE08D | ActivationNotPermitted | Standing order activation is not permitted. |
0xE08E | PrefixNotSealed | Epoch cutoff prefix is not yet sealed. |
0xE08F | RevealProfileBlocked | Reveal profile is blocked. |
0xE090 | GraphIncomplete | Clearing compatibility graph input root mismatch. |
0xE091 | CertificateInvalid | Clearing plan or certificate is invalid. |
0xE092 | BranchMismatch | Clearing branch mode mismatch. |
0xE093 | RefinementInvalid | Clearing refinement invalid. |
0xE094 | FokRoundInvalid | FOK fixpoint round invalid. |
0xE095 | ClearingCursorMismatch | Clearing page cursor mismatch. |
0xE096 | ClearingBoundExceeded | Clearing headroom or page bound exceeded. |
0xE097 | AllocationProfileBlocked | Batch allocation profile is blocked. |
0xE098 | AtomicLimitExceeded | Atomic batch step or size limit exceeded. |
0xE099 | AtomicNotPreauthorized | Atomic batch execution not preauthorized. |
0xE09A | AtomicDisabled | Atomic batch execution is disabled for this profile. |
0xE09B | EpochAlreadyCommitted | Batch epoch is already committed. |
0xE09C | PreparationStepMismatch | Batch preparation step mismatch. |
0xE09D | PoolSegmentInvalid | Pool distribution segment invalid. |
0xE09E | RemainderMismatch | Batch remainder mismatch. |
0xE09F | PreparationBoundExceeded | Batch preparation bound exceeded. |
0xE0A0 | PreparationProfileBlocked | Batch preparation profile is blocked. |
0xE0A1 | BatchNotReady | Batch job is not in Ready phase. |
0xE0A2 | CommitWindowClosed | Batch commit window has closed. |
0xE0A3 | AbortNotObjective | Batch abort condition is not objectively met. |
0xE0A4 | BatchProfileBlocked | Batch commit/abort profile is blocked. |
0xE0A5 | CompletionIncomplete | Batch obligations are not fully materialized or derivable. |
0xE0A6 | CompletionAlreadyDone | Batch completion already recorded. |
0xE0A7 | CompletionProfileBlocked | Batch completion profile is blocked. |
0xE0A8 | StandingVersionStale | Standing commitment version is stale. |
0xE0A9 | StandingExpiryRequired | Standing commitment requires a future expiry slot. |
0xE0AA | StandingRecurrenceBlocked | Recurring standing activation is blocked by UC-09. |
0xE0AB | StandingNotReleasable | Standing commitment is not yet releasable. |
0xE0AC | StandingAmendInvalid | Standing commitment cannot be amended in current state. |
0xE0AD | StandingProfileBlocked | Standing commitment profile is blocked. |
0xE0AE | SourceLocked | Source right is already locked or lot already consumed. |
0xE0AF | SourceNotNormalized | Secondary source lock is not yet normalized. |
0xE0B0 | SourceSelectionInvalid | Secondary source lot selection is invalid. |
0xE0B1 | SourceTransformForbidden | Secondary source transform mask is forbidden. |
0xE0B2 | SourceLockNotReleasable | Secondary source lock is not yet releasable. |
0xE0B3 | SecondaryProfileBlocked | Secondary offer profile is blocked. |
0xE0B4 | OutcomeInterfaceMissing | Shielded outcome mint interface is not ready. |
0xE0B5 | PairDeltaMismatch | Shielded pair vault or supply delta mismatch. |
0xE0B6 | OutcomeCapExceeded | Shielded outcome supply exceeds market cap. |
0xE0B7 | ShieldedProfileBlocked | Shielded outcome profile is blocked. |
0xE0B8 | MergeAfterResolution | Cannot merge shielded set after resolution. |
0xE0B9 | RedeemNotTerminal | Cannot redeem shielded tokens before market is terminal. |
0xE0BA | BridgeNotFullRoot | Bridge requires an unsplit native binary cell. |
0xE0BB | BridgeHolderMissing | Bridge requires both YES and NO holder signatures. |
0xE0BC | NettingNotPermitted | Cross-market netting is not permitted. |
0xE0BD | ExitProfileBlocked | Shielded exit or bridge profile is blocked. |
0xE0BE | RoutePlanMismatch | Disclosure route plan hash or leg index mismatch. |
0xE0BF | RouteCombinationUnlisted | Disclosure route kind is not in static registry. |
0xE0C0 | RouteMinReceiveMissed | Disclosure route output below min_receive. |
0xE0C1 | RouteProfileBlocked | Disclosure route profile is blocked. |
0xE0C2 | FinancingNotFullyFunded | Financed cell funding does not equal q. |
0xE0C3 | FinancingDebtInvalid | Financed cell debt is zero or exceeds q. |
0xE0C4 | FinancingPartyMissing | Financed cell requires maker, borrower, and lender. |
0xE0C5 | FinancingRepayInvalid | Financed cell repayment amount or timing invalid. |
0xE0C6 | FinancingProfileBlocked | Funded financing profile is blocked. |
0xE0C7 | ExchangeBackingMissing | Partial exchange backing verification failed. |
0xE0C8 | ExchangeSignerMissing | Partial exchange requires both holder and counterparty. |
0xE0C9 | ExchangeAfterResolution | Partial exchange forbidden after market resolution. |
0xE0CA | ExchangePayoffChanged | Partial exchange violates payoff invariance. |
0xE0CB | ExchangeProfileBlocked | Partial exchange profile is blocked. |
0xE0CC | ContinuousNotNextAction | Continuous action sequence does not match cursor. |
0xE0CD | ContinuousPackageIncomplete | Continuous action package is incomplete. |
0xE0CE | ContinuousBookFull | Continuous orderbook capacity reached. |
0xE0CF | ContinuousSelectionInvalid | Continuous best-order selection invalid. |
0xE0D0 | ContinuousAuthBlocked | Continuous book profile or auth is blocked. |
0xE0D1 | ContinuousStepStale | Continuous fill step index is stale or ended. |
0xE0D2 | PostOnlyWouldCross | Continuous post-only action would cross. |
0xE0D3 | FokPlanMissing | Continuous FOK action lacks complete fill plan. |
0xE0D4 | ContinuousFillIncomplete | Continuous fill exceeds remaining taker size. |
0xE0D5 | ContinuousBarrierNotDue | Continuous recovery barrier deadline not reached. |
0xE0D6 | ContinuousFillBlocked | Continuous fill profile is blocked. |
0xE0D7 | SplineOfferIncomplete | Confidential spline offer packet is incomplete. |
0xE0D8 | SplineOfferUnderfunded | Confidential spline offer inventory insufficient. |
0xE0D9 | SplineVersionStale | Confidential spline offer version or sequence is stale. |
0xE0DA | SplineTickStale | Confidential spline offer expired or tick stale. |
0xE0DB | SplineOfferNotExpired | Confidential spline offer has not expired. |
0xE0DC | SplineProfileBlocked | Confidential spline offer profile is blocked. |
0xE0DD | DelegateBudgetExhausted | Spline delegate mandate budget exhausted. |
0xE0DE | DelegateNotGranted | Spline delegate mandate not granted by maker. |
0xE0DF | DelegateScopeExceeded | Spline delegate scope or sequence_end exceeded. |
0xE0E0 | DelegateProfileBlocked | Spline delegate profile is blocked. |
0xE0E1 | TreeMapMismatch | Continuous ordered tree does not match map page. |
0xE0E2 | TreeInvariantBroken | Continuous ordered tree RB invariant broken. |
0xE0E3 | TreeProfileBlocked | Continuous ordered tree profile is blocked. |
0xE0E4 | PoolReserveMismatch | Confidential reserve pool balance mismatch. |
0xE0E5 | PoolDepositEmpty | Confidential reserve pool deposit is empty. |
0xE0E6 | PoolSharesInsufficient | Confidential reserve pool shares insufficient. |
0xE0E7 | PoolProfileBlocked | Confidential reserve pool profile is blocked. |
0xE0E8 | FeeAggregateIncomplete | Collector fee aggregation is incomplete. |
0xE0E9 | FeeAggregateMismatch | Collector fee aggregates plus dust do not equal collected fees. |
0xE0EA | ServiceFeeAboveMax | Settlement service fee exceeds service_fee_max. |