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_getCapabilities
to 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
paymasterService
capability before offering gas-free transactions - Use the
capabilities
parameter inwriteContracts
to 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.Learn More: Batch Transactions Guide
- Use
atomicBatch
capability to group related transactions - Implement
wallet_sendCalls
for complex workflows - Show one confirmation instead of multiple prompts
Consider transaction batching for multi-step operations like approve + transfer + mint.
Base Account Benefits for Mini Apps
Feature | What It Does | Mini App Benefit |
---|---|---|
Atomic Batch | Combines multiple transactions into one | Multi-step workflows require only one user confirmation |
Paymaster Service | App pays gas fees, not user | Users can transact without owning ETH |
Passkey Authentication | Uses device biometrics instead of private keys | Faster, more secure user authentication |