Create swap EIP 7702 calldata
npx skills add uniswap/uniswap-trading --skill swap-integrationFull swap flow integration for apps. Works with Claude Code, Cursor, and other AI coding tools.
Authorization
x-api-keystringrequiredheaderHeaders
x-universal-router-versionenumdefault:2.0The version of the Universal Router to use for the swap journey. *MUST* be consistent throughout the API calls.
x-erc20eth-enabledbooleandefault:falseEnable 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/jsonpermitDataobjectsmartContractDelegationAddressstringincludeGasInfobooleandefault:falsedeadlinenumberThe unix timestamp at which the order will be reverted if not filled.
urgencyenumdefault:urgentThe urgency impacts the estimated gas price of the transaction. The higher the urgency, the higher the gas price, and the faster the transaction is likely to be selected from the mempool. The default value is urgent.
simulateTransactionboolean/swap_7702curl --request POST \
--url 'https://trade-api.gateway.uniswap.org/v1/swap_7702' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-universal-router-version: 2.0' \
--header 'x-erc20eth-enabled: false'