curl -X POST https://api.dzap.io/v1/broadcast \
-H "Content-Type: application/json" \
-d '{
"txId": "0xabc...",
"chainId": 42161,
"txData": "0x02f8b0..."
}'
const result = await dzap.broadcastTradeTx({
txId: '0xabc...',
chainId: 42161,
txData: '0x02f8b0...', // signed raw transaction
});
{
"status": "success",
"txnHash": "0xdef456..."
}
Trade API
Broadcast Transaction
Submit a signed transaction for a standard (non-gasless) trade to be broadcast on-chain.
POST
/
v1
/
broadcast
curl -X POST https://api.dzap.io/v1/broadcast \
-H "Content-Type: application/json" \
-d '{
"txId": "0xabc...",
"chainId": 42161,
"txData": "0x02f8b0..."
}'
const result = await dzap.broadcastTradeTx({
txId: '0xabc...',
chainId: 42161,
txData: '0x02f8b0...', // signed raw transaction
});
{
"status": "success",
"txnHash": "0xdef456..."
}
Used for the standard (
gasless: false) flow: the user signs the raw transaction from the /v1/buildTx response, and you submit the signed transaction here. For the gasless flow, see Execute instead.
Body
string
required
The
txId from the non-gasless /v1/buildTx response.integer
required
Chain ID to broadcast on.
string | object[]
required
The signed transaction payload. For most EVM steps this is a raw signed-transaction hex string. For HyperLiquid it’s an array of
{ message, primaryType, signatureChainId, signature, account } typed-data signature objects instead.Response
string
"success" or an error status.string
On-chain transaction hash. Present when
status is "success".string
Error details. Present when
status is not "success".curl -X POST https://api.dzap.io/v1/broadcast \
-H "Content-Type: application/json" \
-d '{
"txId": "0xabc...",
"chainId": 42161,
"txData": "0x02f8b0..."
}'
const result = await dzap.broadcastTradeTx({
txId: '0xabc...',
chainId: 42161,
txData: '0x02f8b0...', // signed raw transaction
});
{
"status": "success",
"txnHash": "0xdef456..."
}
Once submitted, poll
/v1/status with the resulting txnHash and chainId to track settlement - especially for cross-chain bridges.Last modified on July 29, 2026