Master the fundamental operations of WalletAgent. These are the building blocks for all Web3 interactions.
Wallet Information
Get Current Status
Check your current wallet configuration and status:
Get wallet info
Example Output:
Current wallet configuration:
- Type: mock
- Available addresses: 3
- 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
- 0x70997970C51812dc3A010C7d01b50e0d17dc79C8
- 0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC
This command shows:
Wallet Type: Mock (safe) or Real (testnet/mainnet)
Available Accounts: Number of wallets you can connect to
Current Chain: Which blockchain network you're using
Native Currency: The main token of the current chain (ETH, POL, etc.)
List Available Accounts
See all wallets available for connection:
Example Output:
Wallet Connection
Connect to a Specific Wallet
Connect to one of the available test wallets:
Example Output:
Connect Using Short Address
You can use just the first few characters:
WalletAgent will find the matching address automatically.
Get Current Account
Check which wallet is currently connected:
Example Output:
Balance Checking
Check ETH/Native Token Balance
Get your balance on the current chain:
Example Output:
Check Specific Address Balance
Check the balance of any address:
Example Output:
Disconnecting Wallets
Disconnect Current Wallet
Safely disconnect from the current wallet:
Example Output:
After disconnecting:
No wallet is connected
You can't send transactions until reconnecting
All session data is cleared for security
Mock Wallets
Mock wallets provide safe testing with pre-funded accounts (10,000 ETH) and test tokens (USDC, USDT, WETH, DAI). Use for development, testing, and contract interactions without risk.
Beta Software: Use only on testnets or local development environments.
Common Operations
Quick Status Check
Get a complete overview of your current state:
Example Output:
Switch Between Wallets
Easily switch to a different wallet:
Or:
Example Output:
Error Handling
Common Issues and Solutions
"No wallet connected"
Solution: Connect to any available wallet first.
"Invalid address format"
Solution: Use proper Ethereum address format or short references.
"Chain not supported"
Solution: Use supported chain names from the built-in networks.
Best Practices
1. Always Start with Status Check
Before performing operations, check your status:
This ensures you understand:
Which wallet is connected
What chain you're on
Available balance
2. Use Descriptive Commands
Instead of:
Use:
3. Verify Before Important Operations
Before sending transactions or making changes:
4. Use Short Addresses When Possible
Instead of typing full addresses:
WalletAgent will find the match automatically.
5. Understand Your Mode
Always know whether you're in Mock or Real mode:
Mock Mode: Safe for all experimentation
Real Mode: Only for testnet operations
Troubleshooting
Connection Issues
Problem: "MCP server not responding" Solution:
Restart your AI agent
Check that WalletAgent is properly installed
Try: "Get wallet info" to test connection
Problem: "WalletAgent not found" Solution:
Check that WalletAgent is properly configured in your AI agent
Restart your AI agent
Check MCP configuration
Address Issues
Problem: "Address not found" Solution:
Use "Get accounts" to see available addresses
Check address format (0x + 40 hex characters)
Try short address format (first 6+ characters)
Problem: "Invalid address" Solution:
Verify address starts with "0x"
Check for typos in hex characters
Ensure exactly 42 characters total
Balance Issues
Problem: "Balance shows 0" Solution:
Confirm wallet is connected: "Get current account"
Check you're on the right chain: "Get wallet info"
Mock wallets should have 10,000 ETH by default
Next Steps
Now that you understand basic operations, you're ready for more advanced features:
Balance: 10000.0 ETH
Raw: 10000000000000000000000 wei
Get balance of 0x70997970C51812dc3A010C7d01b50e0d17dc79C8
Balance: 10000.0 ETH
Raw: 10000000000000000000000 wei
Disconnect wallet
Wallet disconnected
What's my current status?
📊 WalletAgent Status
👤 Account: 0xf39Fd...2266 (Connected)
💰 Balance: 9999.0 ETH
⛓️ Chain: Anvil (31337)
🔧 Mode: Mock (Safe Testing)
📈 Recent Activity:
- Sent 1.0 ETH to 0x7099...
- Received test tokens
- Switched chains 2 times
✅ System Status: All systems operational
Connect to the second wallet
Switch to 0x70997970C51812dc3A010C7d01b50e0d17dc79C8
🔄 Switched to new wallet successfully!
📍 Old Wallet: 0xf39Fd...2266
📍 New Wallet: 0x70997...79C8
💰 New Balance: 10001.0 ETH
✅ Ready for operations with new wallet
❌ No wallet connected
🔧 To fix this:
1. Connect to a wallet: "Connect to 0xf39F..."
2. Or list available wallets: "Get accounts"
3. Choose from available options
💡 Need help? Ask "How do I connect to a wallet?"
❌ Invalid address format: "0x123"
🔧 Ethereum addresses must:
- Start with "0x"
- Be exactly 42 characters long
- Use valid hexadecimal characters (0-9, a-f)
✅ Valid example: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
💡 You can use short addresses like "0xf39F" - I'll find the match!
❌ Chain "SomeChain" not found
🔧 Supported chains:
- Anvil (31337) - Local development
- Ethereum (1) - Mainnet view-only
- Sepolia (11155111) - Ethereum testnet
- Polygon (137) - Polygon mainnet
💡 Use one of the supported chain names above
Get wallet info
❌ "Balance"
✅ "Check my ETH balance"
✅ "What's my current balance?"
✅ "Get balance of my main wallet"
"Show me my current wallet details"
"What chain am I on?"
"Double-check my balance"
❌ Connect to 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
✅ Connect to 0xf39F