Reference

Errors

Every error code the SDK can raise, what it means and what to do.

The SDK raises UnsleptError with a stable code and a message written for people. Policy errors are raised before anything is paid.

CodeMeaning and fix
PER_CALL_CAPThe price is above the per-call cap. Raise the cap or skip the request.
DAILY_CAPToday's spending would exceed the daily cap. It resets at 00:00 UTC.
MAX_AMOUNTThe price is above the maxAmount you passed for this request.
PAYEE_NOT_ALLOWEDThe payee is not on the allowlist. Add it from the owner wallet.
AGENT_PAUSEDThe owner paused the agent. Resume it in the app.
AGENT_REVOKEDThe signer was revoked. Create a new agent account.
INSUFFICIENT_COLLATERALThe account is not worth enough to cover the payment. Fund it.
INSUFFICIENT_BUFFER_LIQUIDITYThe buffer cannot front this payment right now. Retry shortly or fund the account's liquid balance.
SETTLEMENT_FAILEDThe transaction failed or the server rejected the proof. The message has details.
CONFIGA setting is missing or wrong, such as an address or environment variable.