anon0mesh supports special commands in the chat interface for sending payments.
Send cryptocurrency to other users through the chat interface.
/send <amount> <token> to @<recipient>
- amount: The amount to send (positive number, decimals allowed)
- token: The token type to send
SOL- Solana native tokenUSDC- USD Coin stablecoinZEC- Zcash (zenZEC)multi- Show a selector to choose between all tokens
- recipient: The username/nickname of the recipient (prefixed with @)
/send 1 SOL to @Alice
/send 5.50 USDC to @Bob
/send 0.25 ZEC to @Charlie
/send 1 multi to @Alice
This will open a modal where you can choose which token to send (SOL, USDC, or ZEC).
-
Type the command in the chat input
- Auto-complete suggestions will appear as you type
- Click a suggestion to quickly fill in the command
-
Press send (or Enter)
- The command will be parsed and validated
- A payment request modal will appear
-
Review and confirm
- For multi-token commands, select which token to send
- Review the amount and recipient
- Click "Send Payment" to confirm
-
Payment broadcast
- The payment request is broadcast to the mesh network
- A confirmation message appears in the chat
- The recipient will receive the payment notification
The system validates:
- ✅ Amount must be a positive number
- ✅ Token must be SOL, USDC, ZEC, or multi
- ✅ Recipient must be provided (with @ prefix)
- ✅ Correct format (spaces and keywords in right order)
/send -5 SOL to @Alice # ❌ Negative amount
/send 1 BTC to @Bob # ❌ Invalid token
/send 1 SOL @Charlie # ❌ Missing 'to' keyword
/send SOL 1 to @Dave # ❌ Wrong order (amount before token)
Planned features:
/request <amount> <token> from @<user>- Request payment/swap <amount> <from-token> to <to-token>- Quick swap/balance- Check your balances/history- View transaction history
src/utils/chatCommands.ts- Command parsercomponents/modals/PaymentRequestModal.tsx- Payment UIcomponents/chat/ChatInput.tsx- Auto-complete suggestionscomponents/screens/ChatScreen.tsx- Command handling
- Parser - Regex-based command parsing with validation
- Modal - React Native modal with token selection
- Integration - Hooks into existing wallet and Nostr infrastructure
- Validation - Client-side validation before network broadcast