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.
Native ETH / UniswapX setup: When x-erc20eth-enabled is true and the input token is native ETH, the response may include an additional native approval call (e.g. an approveNative step) to enable ERC20-ETH (EIP-7914) spending for the wallet. This native allowance is a prerequisite for native ETH input on UniswapX (/quote then /order) for supported wallets.
The version of the Universal Router to use for the swap journey. *MUST* be consistent throughout the API calls.
x-erc20eth-enabledbooleandefault:false
Enable native ETH input support for UniswapX via ERC20-ETH (EIP-7914). When set to true and tokenIn is the native currency address (e.g. 0x0000000000000000000000000000000000000000), the API may return UniswapX routes that spend native ETH for supported wallets.
Body
application/json
permitDataobject
smartContractDelegationAddressstring
includeGasInfobooleandefault:false
deadlinenumber
The unix timestamp at which the order will be reverted if not filled.
urgencyenum | UrgencyWithOverrides
simulateTransactionboolean
Response
200400401404429500504
Create 7702 swap successful.
requestIdstringrequired
A unique ID for the request.
swapobjectrequired
Show nested schema
gasFeestring
The total estimated gas cost of this transaction (eg. gasLimit multiplied by maxFeePerGas) in the base unit of the chain.