Bigmi Best Practices Guide
This guide covers best practices for building robust, performant, and secure Bitcoin applications with Bigmi, based on patterns from the actual codebase.Client Configuration
Transport Configuration with Fallbacks
Always use multiple providers for reliability:Timeout and Retry Strategy
Configure appropriate timeouts per operation:Caching Strategy
Configure appropriate cache times:Retry Logic with withRetry
Use Bigmi’s built-in retry utility:Transaction Management
UTXO Selection Best Practices
Filter and select UTXOs efficiently:Fee Estimation Strategy
Use dynamic fee estimation with multiple sources:RBF (Replace-By-Fee) Implementation
Always enable RBF and handle replacements:Address Validation
Always validate addresses before use:Wallet Integration
Multi-Wallet Support
Configure multiple connectors for broader compatibility:Connection Error Handling
Handle wallet-specific errors gracefully:Production Deployment
Environment Configuration
Use different configurations for development and production:Monitoring and Logging
Implement proper error tracking:Summary
Following these best practices will help you build robust, performant, and secure Bitcoin applications with Bigmi:- Always use fallback providers for reliability
- Handle errors gracefully with specific error types
- Implement proper retry logic with exponential backoff
- Validate all inputs including addresses and transactions
- Use efficient state management to minimize re-renders
- Configure appropriate timeouts for different operations
- Enable RBF and handle transaction replacements
- Support multiple wallets for better user coverage
- Use Bigmi’s built-in utilities like
withRetryfor reliability

