v1
latestOpenAPI 3.0.02026-07-142115792.8 KBSwap
Create swap calldata
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/swap
Headers
x-universal-router-version'1.2' | '2.0'
The version of the Universal Router to use for the swap journey. MUST be consistent throughout the API calls.
Request body
Example request
{
"quote": {
"route": [
[
{
"tokenIn": {
"symbol": "ETH"
},
"tokenOut": {
"symbol": "ETH"
}
}
]
]
}
}Response
Create swap successful.