v1
latestOpenAPI 3.0.02026-07-142115792.8 KBSwap
Create swap EIP 7702 calldata
Create the EIP 7702 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 the response calldata would be valid if submitted on-chain.
post/swap_7702
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 7702 swap successful.