Skip to Content
KryptWarden Developers
Smart contracts

Contract errors

Every KwError code the wallet can return, and what it means.

Contract errors surface in RPC responses as Error(Contract, #N). The SDK maps the common ones to SDK error codes.

CodeNameMeaning
100NotInitializedWallet config is missing
101AlreadyInitializedConstructor ran twice
102InvalidAmountAmount is zero or negative
103InvalidPolicyPolicy out of range: limit above budget, no sellers, past expiry, or timeout outside 10 s–24 h
104TooManyAllowedSellersMore than 32 sellers
105AgentAlreadyExistsKey already registered
106AgentNotFoundKey isn't registered on this wallet
107AgentNotActiveAgent is paused or revoked
108AgentExpiredAgent's expires_at has passed
109WalletPausedKill switch is on
110UnsupportedAuthContextAuthorisation isn't a contract call to transfer
111TokenNotAllowedTransfer of a token other than the wallet's USDC
112SubInvocationsNotAllowedMore than one auth context in the transaction
113InvalidTransferArgsNot a well-formed transfer(from=wallet, to, amount)
114SellerNotAllowedRecipient isn't on the allow-list
115BudgetExceededSpent today + open holds + amount > daily budget
116HoldRequiredAmount is above the auto-approve limit and no hold was given
117HoldNotFoundNo hold with that ID
118HoldNotApprovedHold exists but isn't approved (pending or denied)
119HoldAlreadyUsedHold was already consumed
120HoldExpiredPast the hold's deadline
121HoldMismatchTransfer's agent, seller or amount differs from the hold
122HoldNotPendingHold can't move to the requested state
123TooManyActiveHoldsAgent already has 8 open holds
124RequestAlreadyUsedrequest_id seen within the last 7 days
125IntentExpiredCurrent ledger is past the intent's max_ledger
126InsufficientUnreservedBalanceWithdrawal is larger than balance minus open holds
127ArithmeticOverflowChecked arithmetic overflowed
128RenounceDisabledrenounce_ownership is turned off
1000OpenZeppelin EnforcedPausePaused, from the OpenZeppelin Pausable module