Skip to main content
Types used with buildTradeTxn and trade. Import from @dzapio/sdk.

TradeBuildTxnRequest

TradeBuildTxnRequestData

TradeBuildTxnResponse (buildTradeTxn / build response, non-gasless)

Returned by buildTradeTxn(request) (when gasless: false) and passed as txnData to trade(). transaction is the chain-specific payload; several fields are also mirrored at the top level for backwards compatibility (@deprecated, EVM-only):
When gasless: true is requested instead, the response is a GaslessTradeBuildTxnResponse:

DZapTransactionResponse (trade / zap execution result)

Next steps

Last modified on July 29, 2026