Supported Wallets
The portal supports multiple wallet providers through WalletConnect and direct integrations:- MetaMask: Browser extension and mobile app
- WalletConnect: Compatible with 100+ wallets
- Coinbase Wallet: Browser extension and mobile
- Trust Wallet: Mobile application
- Brave Wallet: Built into Brave browser
Initial Setup
Install Wallet Extension
MetaMask Installation
- Visit metamask.io
- Click “Download” for your browser
- Add extension to browser
- Follow setup wizard
- Set a strong password
- Save your Secret Recovery Phrase securely
- Confirm recovery phrase
- Complete setup
- Select “Import wallet”
- Enter your Secret Recovery Phrase
- Set password
- Complete import
Connect to Portal
Connect your wallet to the AgrospAI portal:Connection Status
- Click “Connect Wallet” button in header
- Select your wallet provider
- Approve connection in wallet popup
- Confirm account selection
- Green indicator: Connected and ready
- Yellow indicator: Wrong network
- Red indicator: Disconnected
Configure Networks
Add supported networks to your wallet:Automatic Network SwitchingThe portal prompts network changes when needed:
Network Configuration
The portal supports multiple networks. Add them to MetaMask:Example: Polygon NetworkSome operations require specific networks. The portal will prompt you to switch networks when necessary.
Add Tokens
Import Base Tokens
Add tokens used for payments:OCEAN Token Example- Open MetaMask
- Scroll to bottom, click “Import tokens”
- Select “Custom token”
- Enter token address
- Confirm token details
- Click “Add Custom Token”
Import Custom Tokens
For marketplace-specific tokens, use the token import feature:- Navigate to User Settings
- Select “Custom Tokens”
- Click “Import Token”
- Enter token contract address
- Verify token details
- Complete import
Fund Your Wallet
Obtain Network Tokens
You need native tokens for gas fees:Mainnet Networks- Purchase from exchanges (Coinbase, Binance, Kraken)
- Transfer from another wallet
- Use on-ramp services (MoonPay, Wyre)
- Visit faucet website
- Enter your wallet address
- Complete captcha/verification
- Receive test tokens (usually within minutes)
Acquire Base Tokens
Obtain tokens for purchasing assets:DEX (Decentralized Exchange)- Uniswap
- SushiSwap
- QuickSwap (Polygon)
- Binance
- Coinbase
- Kraken
Wallet Management
Viewing Balances
The portal displays your token balances:- Native token (ETH, MATIC, etc.)
- Approved base tokens (OCEAN, USDC, etc.)
- Datatokens for owned assets
Managing Transactions
Transaction History View in MetaMask:- Open MetaMask
- Click “Activity” tab
- View all transactions
- Click transaction for details
- Pending: Waiting for confirmation
- Confirmed: Successfully completed
- Failed: Transaction reverted
- Dropped: Replaced or cancelled
Security Best Practices
Checking Token ApprovalsNetwork Switching
Automatic Network Detection
The portal detects network mismatches:Manual Network Switching
Via Portal- Click network indicator in header
- Select desired network from dropdown
- Approve switch in wallet
- Open MetaMask
- Click network dropdown at top
- Select network
- Refresh portal page
Advanced Configuration
Custom RPC Endpoints
Improve performance with custom RPC providers: Infura ConfigurationHardware Wallet Integration
Ledger Setup- Connect Ledger device
- Open Ethereum app on device
- In MetaMask, select “Connect Hardware Wallet”
- Choose Ledger
- Select account to use
- Confirm on device
- Connect Trezor device
- In MetaMask, select “Connect Hardware Wallet”
- Choose Trezor
- Complete Trezor Connect verification
- Select account
Multiple Account Management
Switching Accounts- Each account has separate:
- Asset ownership
- Transaction history
- Token balances
- Allowlist/denylist status
Troubleshooting
Connection Issues
Wallet won’t connect- Refresh the page
- Disable conflicting extensions
- Try incognito/private mode
- Clear browser cache
- Update wallet extension
- Switch to supported network
- Contact admin to add network support
Transaction Failures
“Insufficient funds for gas”- Add native tokens to wallet
- Reduce transaction amount to leave room for gas
- Increase gas price
- Wait for network congestion to decrease
- Use “Fast” or “Rapid” gas settings
- Check asset state (may be disabled by publisher)
- Verify token allowances are sufficient
- Ensure you meet access requirements (allowlist)
- Check for smart contract errors in block explorer
Balance Display Issues
Tokens not showing- Manually import token (see Add Tokens step)
- Verify you’re on correct network
- Check token balance on block explorer
- Refresh browser page
Wallet Best Practices
- Use separate wallets: Different wallets for different purposes (trading, holding, testing)
- Regular backups: Keep multiple copies of recovery phrase in secure locations
- Test with small amounts: Verify operations work before large transactions
- Monitor token approvals: Revoke unused approvals periodically
- Enable notifications: Stay informed of account activity
- Verify addresses: Double-check addresses before sending
- Update software: Keep wallet and browser extensions current
- Use strong passwords: Unique, complex passwords for wallet access
- Consider hardware wallet: For high-value assets
- Review transactions carefully: Check all details before confirming
Getting Help
If you encounter wallet issues:- Portal Support: Check FAQ and documentation
- Wallet Provider: MetaMask support, WalletConnect docs
- Community: Discord, Telegram channels
- Block Explorer: Verify transaction status
Related Resources
Code References
Key implementation files:- Wallet connection:
src/@utils/wallet/EthersWalletConnector.ts - Balance management:
src/@hooks/useBalance.ts - Network utilities:
src/@hooks/useNetworkMetadata.ts - Account state:
wagmi useAccount, useNetwork hooks