Trade API
Build Transaction
Compile a trade quote into ready-to-sign transaction calldata.
POST
Takes the route(s) you selected from
Response - non-gasless (
Response - gasless (
/v1/quotes (via protocol) and returns transaction data ready to sign and submit.
Body
string
required
Wallet address sending the transaction.
string
required
Address to receive refunds.
integer
required
Source chain ID for every item in
data.boolean
required
false for standard execution; true for the gasless/intent flow.object[]
required
Array of trade legs to build.
boolean
Request private/MEV-protected execution.
boolean
Skip gas estimation for a faster build.
boolean
Set
true if Permit2 approval already exists for every token in data.string
Required for Bitcoin-chain transactions only.
Response - non-gasless (gasless: false)
string
"success" when the build succeeds.string
Unique build/transaction ID - use for status polling and broadcasting.
integer
Chain where the transaction is to be executed.
object
Chain-specific payload - shape depends on the chain type.
boolean
false.boolean
Echoes whether private/MEV-protected execution was used.
object
Per-pair summary keyed by pair ID.
string
@deprecated - top-level mirror of transaction.data for EVM chains.string
@deprecated - top-level mirror of transaction.from.string
@deprecated - top-level mirror of transaction.to.string
@deprecated - top-level mirror of transaction.value.string
@deprecated - top-level mirror of transaction.gasLimit.object
{ blockhash, lastValidBlockHeight }, present for Solana transactions.object
{ inputs, outputs, feeRate }, present for Bitcoin transactions.object
{ paymentRequestType: "bolt11", paymentRequest, paymentExpiry }, present for Bitcoin Lightning.object
Record<string, Record<string, unknown>>.object
Record<string, string> - refreshed destination amounts keyed by pair ID.Response - gasless (gasless: true)
string
"success".string
Intent ID - pass to
/v1/gasless/executeTx once signed.object
Typed-data payload to sign.
object
Same shape as the non-gasless response above.
boolean
true.boolean
false.Examples
Use the
txId to poll /v1/status once the transaction has been signed and sent.Last modified on July 14, 2026