BloxwapAgent CLI

Error catalog

Stable failure codes, exit status, and recovery.

Failures always have {ok:false,code,message,retryable,details}; successes have {ok:true,data}. Codes are append-only. Retry only when retryable is true, using bounded backoff. Exit 2 means invalid configuration/input, 75 means temporary failure, 1 means a permanent failure.

CodeMeaningRetryableAgent action
INSUFFICIENT_MARGINAccount margin too lowfalseReduce size or fund
POLICY_REJECTEDLocal or custody policy deniedfalseAdjust intent
AGENT_EXPIREDAgent expiredfalseRotate
AGENT_NOT_APPROVEDAgent or builder unapprovedfalseComplete init
DEPOSIT_PENDINGDeposit unsettledtruePoll status
NONCE_COLLISIONNonce reusedtrueGenerate next nonce
RATE_LIMITUpstream throttledtrueBack off
INVALID_SIZEInvalid amountfalseCorrect size
INVALID_PRICEInvalid pricefalseCorrect price
UNKNOWN_MARKETMarket absentfalseRefresh metadata
ORDER_NOT_FOUNDOrder absentfalseRefresh orders
RUNNER_NOT_RUNNINGRunner unavailabletrueStart runner
CONFIG_INVALIDInvalid input/configfalseCorrect configuration
NETWORK_ERRORTransport failuretrueBack off
UPSTREAM_ERRORUnrecognized service failurefalseInspect redacted details
INTERNALUnexpected local failurefalseInspect logs
Edit on GitHub