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 comprehensive 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
ThegetZapTxnStatus
function accepts the following parameters:
Parameter | Type | Required | Description |
---|---|---|---|
chainId | number | yes | Chain ID where the transaction was executed |
txnHash | string | yes | Transaction hash from the zap execution |
Zap Status Response Structure
ThegetZapTxnStatus
method returns a response that follows this structure:
Working with Zap Status Results
Process and display zap status information:Best Practices
- Implement proper polling intervals - Don’t poll too frequently to avoid rate limits (recommended: 5-10 seconds)
- Handle all status types - Prepare for successful, failed, pending, and refunded states