For AI agents: a documentation index is available at /llms.txt. A markdown version of this page is available at the same URL with .md appended (or via Accept: text/markdown).
Skip to main content

Error codes

The mm CLI surfaces errors with stable code values. Use these codes in scripts and agent workflows to branch on failures.

Run mm <command> --help for command-specific validation rules.

Authentication errors (AuthError)

CodeMeaning
AUTH_FAILEDAuthentication failed (includes missing refresh token)
AUTH_ERRORGeneric authentication error
ALREADY_AUTHENTICATEDValid session already exists; run mm logout before signing in
COMING_SOONFeature not available (for example, mm login qr in production)
TOKEN_INVALIDInvalid CLI token, token pair, or project ID
TOKEN_REFRESH_FAILEDFailed to refresh token
PAIRING_EXPIREDPairing session expired
INVALID_OTPInvalid one-time password
MWP_TIMEOUTMobile Wallet Protocol timeout
MWP_CANCELLEDMobile Wallet Protocol cancelled (pairing aborted)
PAIRING_CANCELLEDBrowser pairing cancelled by the user
LOGOUT_FAILEDSign-out operation failed (includes token revoke failures)

Validation errors (ValidationError)

CodeMeaning
MISSING_FLAGRequired flag missing in headless mode
MISSING_INPUTRequired input is missing
MISSING_CHAINChain value is missing
MISSING_CHAIN_ID--chain-id is missing
INVALID_CHAINChain value is invalid
INVALID_INPUTInvalid user input
INVALID_TORecipient address is invalid
INVALID_TYPED_DATAEIP-712 payload is invalid
INVALID_TRANSACTION_PAYLOADTransaction payload is invalid
CHAIN_ID_MISMATCHTyped-data domain chain ID differs from --chain-id
INVALID_MNEMONICBring your own wallet mnemonic is invalid
NOT_INITIALIZEDProject not initialized; run mm init
INVALID_LIMITInvalid --limit value for mm tx history (must be 1–500)
INVALID_CONFIG_KEYUnknown CLI config key
INVALID_NETWORKUnsupported or unknown network
UNKNOWN_FLAGUnrecognized CLI flag

Wallet errors (WalletError)

CodeMeaning
MISSING_MNEMONICBring your own wallet mode is missing a mnemonic
MNEMONIC_LOCKEDMnemonic is password-protected
WRONG_PASSWORDMnemonic password is incorrect
WALLET_NOT_FOUNDWallet not found
WALLET_NOT_REGISTEREDBYOK wallet registration failed during mm init
WALLET_ERRORWallet operation failed
NO_AUTH_TOKENMissing authentication token
NO_PROJECT_IDProject ID not configured
NO_HISTORY_WALLETSNo EVM wallets found for mm tx history
TX_NOT_FOUNDTransaction hash not found onchain
INVALID_TX_HASHMalformed transaction hash

Swap errors (SwapCommandError)

CodeMeaning
NO_QUOTESNo swap quotes returned for the request
INVALID_SWAP_PARAMSMissing or invalid swap parameters
TOKEN_NOT_FOUNDToken not found for the selected chain
QUOTE_NOT_FOUNDQuote ID not found
NO_TRADE_DATASelected quote has no trade transaction
EXECUTE_FAILEDSwap execution failed
STATUS_UNAVAILABLESwap status unavailable
INSUFFICIENT_FUNDSSource token balance insufficient
INSUFFICIENT_GASNative balance cannot cover gas fees
AMOUNT_TOO_LOWSwap amount below minimum threshold
SLIPPAGE_TOO_HIGHSlippage exceeds acceptable range
QUOTE_RETRYTransient bridge quote-stream retry signal (retryable)
SWAP_ERRORGeneric swap error

Perpetuals errors

CodeMeaning
ORDER_REJECTEDOrder rejected by Hyperliquid
DEPOSIT_FAILEDDeposit to venue failed
INSUFFICIENT_BALANCEVenue sub-account has insufficient balance
MINIMUM_DEPOSIT_AMOUNTDeposit below Hyperliquid minimum
MINIMUM_WITHDRAW_AMOUNTWithdrawal below Hyperliquid minimum
MINIMUM_ORDER_NOTIONALOrder notional below $10 floor
HYPERLIQUID_ERRORGeneric Hyperliquid error (often unfunded sub-account)

The CLI provides actionable hints for common failures — for example, minimum amounts for deposits and withdrawals, the $10 notional floor for orders, funding shortfalls (including --include-spot), and source-chain mismatches. Operational errors surface a retry hint instead of raw provider text.

See Trade perpetuals.

Predict errors

CodeMeaning
PREDICT_SETUP_REQUIREDRun mm predict setup before this operation
PREDICT_AUTH_REQUIREDPredict credentials missing or expired
PREDICT_INSUFFICIENT_BALANCEInsufficient pUSD in the deposit wallet
PREDICT_INSUFFICIENT_FUNDING_BALANCEInsufficient USDC.e for mm predict deposit
PREDICT_INSUFFICIENT_GASInsufficient native POL for gas on predict deposit
INVALID_TICK_SIZEInvalid --tick-size value for mm predict quote/place
PREDICT_ERRORGeneric predict error

Earn errors

CodeMeaning
EARN_VAULT_NOT_FOUNDYield vault not found for the specified token/chain
EARN_INSUFFICIENT_BALANCEInsufficient balance for earn supply
EARN_WITHDRAW_REVERTEDWithdraw transaction reverted (retried automatically)
EARN_ERRORGeneric earn error

Server-wallet errors

CodeMeaning
JOB_TIMEOUTWallet job timed out (default 10 minutes, max 600s)
REQUEST_NOT_FOUNDServer-wallet request not found

Network errors

CodeMeaning
NETWORK_UNREACHABLENetwork unreachable