Skip to main content
DZap’s error model has two layers: execution errors returned when a transaction is submitted/simulated, and contract-revert errors surfaced when the on-chain call itself reverts.

Execution status codes

StatusCodes, used in code fields across the SDK (e.g. DZapTransactionResponse.code):

Transaction status

Every SDK execution result (trade(), zap(), tradeGasless()) reports one of these in its status field: mining · success · rejected · error · reverted · pendingWalletConfirmation · partialSuccess · waitingForExecution

Contract-revert errors and recovery actions

When execution fails, the response may include an action hint telling you how to recover:

Status endpoint terminal states

/v1/status (Trade) and /v1/status (Fuse) both report a terminal status field once the transaction settles:
  • Trade (TradeStatusResponse.status, and per-leg TxStatusForPair.status): COMPLETED · FAILED · PENDING · PARTIAL · REFUNDED
  • Fuse (ZapStatusResponse.status, and per-step ZapStatusStep.status): PENDING · COMPLETED · FAILED · REFUNDED
See Track Trade Status and Track Zap Status for polling examples.
Last modified on July 14, 2026