Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions agent-wallet/reference/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ All `mm` commands accept global flags unless noted.
Many signing and transfer commands also accept `--password` (environment variable: `MM_PASSWORD`) in
bring your own wallet mode to unlock an encrypted mnemonic.

Commands that take an `--amount` accept a positive, human-readable decimal such as `100` or `0.5`.
Scientific notation such as `1e3` is allowed, and grouping and decimal separators follow the host
locale, so both `1,000.50` and `1.000,50` are valid. Plain ASCII decimals like `0.5` are accepted in
every locale. An unparseable or non-positive value returns `INVALID_AMOUNT`. See
[Error codes](error-codes.md).

## `mm doctor`

Inspect CLI version, installed skills, environment, and session health.
Expand Down
39 changes: 20 additions & 19 deletions agent-wallet/reference/error-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,26 @@ Run `mm <command> --help` for command-specific validation rules.

## Wallet errors (`WalletError`)

| Code | Meaning |
| ----------------------- | ------------------------------------------------- |
| `MISSING_MNEMONIC` | Bring your own wallet mode is missing a mnemonic |
| `MNEMONIC_LOCKED` | Mnemonic unlock failed after the maximum attempts |
| `WRONG_PASSWORD` | Mnemonic password is incorrect |
| `WALLET_NOT_FOUND` | Wallet not found |
| `WALLET_NOT_REGISTERED` | BYOK wallet registration failed during `mm init` |
| `WALLET_ERROR` | Wallet operation failed |
| `NO_AUTH_TOKEN` | Missing authentication token |
| `NO_PROJECT_ID` | Project ID not configured |
| `NO_HISTORY_WALLETS` | No EVM wallets found for `mm tx history` |
| `TX_NOT_FOUND` | Transaction hash not found onchain |
| `INVALID_TX_HASH` | Malformed transaction hash |
| `UNSUPPORTED_CHAIN` | Chain not supported for this operation |
| `INVALID_AMOUNT` | Non-positive amount; value must be positive |
| `TX_REVERTED` | Transaction reverted onchain |
| `TX_DENIED` | Transaction was rejected during 2FA approval |
| `TX_EXPIRED` | 2FA approval for the transaction expired |
| `TX_FAILED` | Transaction failed after submission |
| Code | Meaning |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `MISSING_MNEMONIC` | Bring your own wallet mode is missing a mnemonic |
| `MNEMONIC_LOCKED` | Mnemonic unlock failed after the maximum attempts |
| `WRONG_PASSWORD` | Mnemonic password is incorrect |
| `WALLET_NOT_FOUND` | Wallet not found |
| `WALLET_NOT_REGISTERED` | BYOK wallet registration failed during `mm init` |
| `WALLET_ERROR` | Wallet operation failed |
| `WALLET_LIMIT_EXCEEDED` | Project has reached the maximum of 100 wallets. Run `mm wallet list` to see existing wallets |
| `NO_AUTH_TOKEN` | Missing authentication token |
| `NO_PROJECT_ID` | Project ID not configured |
| `NO_HISTORY_WALLETS` | No EVM wallets found for `mm tx history` |
| `TX_NOT_FOUND` | Transaction hash not found onchain |
| `INVALID_TX_HASH` | Malformed transaction hash |
| `UNSUPPORTED_CHAIN` | Chain not supported for this operation |
| `INVALID_AMOUNT` | Amount is not a positive, parseable number. Use a positive decimal like `100` or `0.5`. Scientific notation such as `1e3` is allowed, and grouping and decimal separators follow the host locale, so both `1,000.50` and `1.000,50` are valid |
| `TX_REVERTED` | Transaction reverted onchain |
| `TX_DENIED` | Transaction was rejected during 2FA approval |
| `TX_EXPIRED` | 2FA approval for the transaction expired |
| `TX_FAILED` | Transaction failed after submission |

## Swap errors (`SwapCommandError`)

Expand Down
2 changes: 2 additions & 0 deletions agent-wallet/reference/supported-chains.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Use `mm chains list --json` to inspect feature availability programmatically.
| MegaETH | `4326` | Covered |
| Hemi | `43111` | No |
| Robinhood Chain | `4663` | Covered |
| Arc | `5042` | Covered |
| Palm | `11297108109` | No |

:::caution Chains without Transaction Shield support
Expand Down Expand Up @@ -99,6 +100,7 @@ Treat that as a basic safeguard, not a replacement for threat scanning.
| MegaETH Testnet | `6343` |
| Hemi Testnet | `743111` |
| Robinhood Chain Testnet | `46630` |
| Arc Testnet | `5042002` |

For chains not in the preconfigured list, `mm wallet balance` falls back to direct RPC queries via
Multicall3.
Expand Down
Loading