Skip to main content
POST
/
v1
/
buildTx
curl -X POST https://zap.dzap.io/v1/buildTx \
  -H "Content-Type: application/json" \
  -d '{ "srcToken": "...", "srcChainId": 8453, ... }'
{
  "status": "success",
  "data": {
    "to": "0x1d46863e3592745008b5CbbAC12014F67329A9b8",
    "data": "0x...",
    "value": "0",
    "gasLimit": "350000",
    "txId": "0xabc..."
  }
}
Takes a quote (or the same params you passed to /v1/quote) and returns transaction data ready to sign and submit.

Body

srcToken
string
required
srcChainId
integer
required
destToken
string
required
destChainId
integer
required
amount
string
required
Amount in wei.
recipient
string
required
refundee
string
required
Address to refund if cross-chain settlement fails.
slippage
number
required
account
string
required
permit
string
Permit2 / EIP-2612 signature payload, if you signed one.

Response

status
string
data.to
string
Contract to call.
data.data
string
Hex-encoded calldata.
data.value
string
Native value to send (for native-token swaps).
data.gasLimit
string
Suggested gas limit.
data.txId
string
Bind for status polling.

Examples

curl -X POST https://zap.dzap.io/v1/buildTx \
  -H "Content-Type: application/json" \
  -d '{ "srcToken": "...", "srcChainId": 8453, ... }'
{
  "status": "success",
  "data": {
    "to": "0x1d46863e3592745008b5CbbAC12014F67329A9b8",
    "data": "0x...",
    "value": "0",
    "gasLimit": "350000",
    "txId": "0xabc..."
  }
}
Use the txId to poll /v1/status until the (possibly cross-chain) settlement completes.
Last modified on May 4, 2026