Aqua0
Swaps

Get SwapVM swap calldata

Returns the {to, data} pair the trader sends on chain to execute the swap. Same input as /quote — call /quote first to confirm amountOut and slippage, then /prepare to get the calldata.

POST
/api/v1/swaps/prepare

Authorization

ApiKeyAuth
X-API-Key<token>

In: header

Response Body

curl -X POST "https://example.com/api/v1/swaps/prepare"
Empty
Empty