Build

Assemble a quoted swap into an executable transaction

Assemble a quote into an executable transaction

post

Takes a quote_id from a previous /v1/quote response and assembles it into an unsigned transaction ready for wallet signing and on-chain submission. This is the second step in the swap flow: quote -> build -> execute (or submit directly).

The response contains a complete transaction object (to, data, value, gas, chain_id) targeting the ExecutionProxy contract, plus estimated output metadata.

Quotes can be built multiple times (no consumption on build). An optional permit2_signature can be attached for gasless approval flows.

Authorizations
X-API-KeystringRequired

API key for authentication. Can also be provided via Authorization header with Bearer prefix: Authorization: Bearer <api-key>

Body
quote_idstringRequired

Quote identifier from a previous /v1/quote response

Example: 550e8400-e29b-41d4-a716-446655440000
permit2_signaturestringOptional

Hex-encoded Permit2 signature from signing the EIP-712 typed data returned in the quote's permit2 field. Only used if the original quote was requested with include_permit2=true. Silently ignored if the quote did not include permit2 data.

Example: 0x1234567890abcdef...Pattern: ^0x[a-fA-F0-9]+$
simulatebooleanOptional

Run fork simulation on the assembled transaction before returning. The simulation result is included in the response. Simulation failures do NOT block the response — the transaction is still returned with simulation.success=false.

Default: false
Responses
chevron-right
200

Transaction assembled successfully

application/json
post
/v1/build

Last updated