What you’ll learn
By the end of this guide, you’ll understand:
- How to handle wallet transactions effectively in Mini Apps, including leveraging enhanced Base Account capabilities when available.
Default Wallets in Mini Apps
Mini Apps launched within the Base App are automatically connected to the user’s Base Account, eliminating wallet connection flows and enabling instant onchain interactions. This zero-friction approach means users can immediately swap, send, and transact without any wallet setup, maintaining a familiar experience with their existing Base Account and assets.For Mini App Development
1
Detect Base Account Capabilities
Base Accounts offer enhanced features that traditional wallets don’t support.Learn More: Base Account Capabilities Overview
- Use
wallet_getCapabilitiesto check foratomicBatch,paymasterService, andauxiliaryFunds - Adapt your UI to show streamlined workflows for Base Account users
- Provide fallback experiences for traditional wallets
Test with both Base Accounts and traditional wallets to ensure your capability detection works correctly.
2
Implement Sponsored Gas Transactions
Enable sponsored gas transactions where your Mini App pays gas fees for users.Learn More: Paymaster Service
- Check for
paymasterServicecapability before offering gas-free transactions - Use the
capabilitiesparameter inwriteContractsto enable sponsored gas - Handle cases where paymaster service is unavailable
Verify your Mini App works with Base Accounts that have zero ETH balance.
3
Optimize Transaction Patterns
Base Accounts can batch multiple operations into single transactions.
- Use
atomicBatchcapability to group related transactions - Implement
wallet_sendCallsfor complex workflows - Show one confirmation instead of multiple prompts
Base Account Benefits for Mini Apps
Implementation Examples
Capability Detection
Sponsored Gas Implementation
Capability-Based UI
Additional Resources
For detailed implementation of Base Account features:User Authentication
Authenticate Users Guide
Base Pay Guide
Base Pay Guide
Sign and Verify Signatures
Sign and Verify Typed Data Guide