Protocol Swapping
Create Swap
Create the calldata for a swap transaction (including wrap/unwrap) against the Uniswap Protocols. If the quote
parameter includes the fee parameters, then the calldata will include the fee disbursement. The gas estimates will be more precise when the the response calldata would be valid if submitted on-chain.
POST
Authorizations
Headers
The version of the Universal Router to use for the swap journey. MUST be consistent throughout the API calls.
Available options:
1.2
, 2.0
Body
application/json
The parameters signature and permitData should only be included if permitData was returned from /quote.
Response
200
application/json
Create swap successful.
The response is of type object
.
Previous
Create Batch SwapCreate the EIP 5792 calldata for a swap transaction (including wrap/unwrap and bridging) against the Uniswap Protocols. If the `quote` parameter includes the fee parameters, then the calldata will include the fee disbursement. The gas estimates will be **more precise** when the response calldata would be valid if submitted on-chain.
Next