Skip to main content

StatusCodes (enum)

Returned in responses (e.g. approval, trade) for programmatic handling:

Trade failure actions (contractErrorActions)

When trade() fails, check result.action and handle accordingly: Example:

DZapTransactionResponse

The trade() response shape:
Always check status === TxnStatus.success before using txnHash. Use errorMsg for user-facing messages.

Next steps

Last modified on July 14, 2026