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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
quote
required
permitData
object

the permit2 message object for the customer to sign to permit spending by the permit2 contract.

number

The unix timestamp at which the order will be reverted if not filled.

string
enum
Defaults to urgent

The 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.

Allowed:
Headers
string
enum
Defaults to 2.0

The version of the Universal Router to use for the swap journey. MUST be consistent throughout the API calls.

Allowed:
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json