Skip to main content
Handle complex multi-step transaction flows with proper state management, visual feedback, and error handling.

Implementation

Key concepts

  • State management - Tracks progress through multiple steps
  • Visual feedback - Shows loading indicators and checkmarks for each step
  • Error handling - Catches errors at any step and allows retry
  • User experience - Disables button during processing
  • Confirmation delays - Waits for transaction confirmation before proceeding

Common patterns

With transaction confirmation

With progress percentage

With cancellation support

Important notes

Always wait for transaction confirmation before proceeding to the next step to avoid errors from transactions not being mined yet.
Consider adding retry logic for failed steps, especially for network-related errors.

Styling suggestion

Next steps

ERC-20 Transfers

Token transfer basics

Styling Examples

Style your components