Description
One major issue using MetaMask is ‘stuck transactions’ which especially can occur when the user uses many actions, and therefore fills the Queue with transactions and then at some point there will be a transaction which wasn’t readily set for the increased gas price, therefore it gets stuck. The traditional way is to do a Speed Up, but that requires user attention and work. It would be nice, if the Wallet took care of things automatically.
Auto Speed Up (Feature Request)
Idea / Request (for discussion):
Here’s how such a feature could be implemented:
- User Configuration:
- Users could enable the auto-speed-up feature in the wallet settings.
- They could define parameters like:
- Percentage increase per attempt (e.g., 10%, 20%)
- Time interval between attempts (e.g., 2 minutes, 5 minutes)
- Maximum number of attempts
- Maximum gas price limit (to prevent excessive spending)
- Transaction Monitoring:
- The wallet would monitor the status of pending transactions.
- If a transaction remains pending for a specified duration (e.g., 1 minute), the auto-speed-up function would be triggered.
- Speed-Up Execution:
- The wallet would calculate the new gas price based on the configured percentage increase.
- It would submit a speed-up transaction with the increased gas price.
- It would wait for the specified time interval before attempting another speed-up.
- Stopping Conditions:
- The auto-speed-up process would stop if:
- The transaction is confirmed.
- The maximum number of attempts is reached.
- The gas price reaches the user-defined maximum limit.
- The user manually cancels the transaction.
Benefits:
- Convenience: Users wouldn’t need to manually monitor and speed up transactions.
- Reduced Anxiety: It would alleviate the stress of dealing with stuck transactions.
- Time Savings: Users could focus on other tasks while the wallet handles the speed-up process.
- Improved Efficiency: It could contribute to a more efficient network by dynamically adjusting gas prices based on real-time conditions.
Challenges:
- Gas Price Prediction: Even with incremental increases, predicting optimal gas prices remains a challenge.
- Nonce Management: Careful nonce management is crucial to avoid conflicts and ensure proper transaction replacement.
- User Interface: Designing a user-friendly interface for configuring and managing the auto-speed-up feature is essential.
- Technical Complexity