Monitor the progress of complex multi-step zap operations, from simple swaps to cross-chain DeFi strategies.
Zap operations can involve multiple steps across different protocols and chains. The DZap SDK provides detailed status tracking to monitor each step of your zap execution and handle any issues that may arise.
Basic Zap Status Tracking
Monitor the status of a completed zap operation:
Zap Status Request Parameters
The getZapTxnStatus function accepts the following parameters:
Zap Status Response Structure
The getZapTxnStatus method returns a response that follows this structure:
Working with Zap Status Results
Process and display zap status information:
Polling for Zap Completion
For zaps that include cross-chain steps, poll until the operation reaches a terminal state:
Best Practices
- Implement proper polling intervals - Don’t poll too frequently to avoid rate limits (recommended: 10s+)
- Handle all status types - Prepare for successful, failed, pending, and refunded states
- Log step progress - Zaps have multiple steps; showing progress improves user experience
Last modified on July 14, 2026