After executing a trade, you need to monitor its progress, especially for cross-chain transactions that may take several minutes to complete.The DZap SDK provides comprehensive status tracking for all trade types, from simple swaps to complex cross-chain bridges.
Rate Limits: Our API and SDK have rate limits in place to ensure fair usage.
If you need increased rate limits for your application, please reach out to our
team on Telegram.
Basic Status Tracking
Here’s how to check the status of a completed trade:Status Request Parameters
ThegetTradeTxnStatus function accepts the following parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
txHash | string | yes | The transaction hash from the executed trade |
chainId | number | yes | The chain ID where the transaction was executed |
Status Response Structure
The status response follows theTradeStatusResponse type:
Best Practices
- Implement proper polling intervals - Don’t poll too frequently to avoid rate limits
- Handle all status types - Prepare for successful, failed, and pending states
Cross-chain transactions can take anywhere from a few minutes to an hour
depending on the bridge used and network congestion.