v1
latestOpenAPI 3.0.02026-07-142115792.8 KBSwap
Create swap EIP 5792 calldata
Create 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.
post/swap_5792
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 5792 swap successful.