Authorizations
Headers
The version of the Universal Router to use for the swap journey. MUST be consistent throughout the API calls.
2.0
Body
The parameters signature and permitData should only be included if permitData was returned from /quote.
- Classic Quote
- Wrap/Unwrap Quote
- Bridge Quote
The signed permit.
Use refreshGasPrice
instead.
If true, the gas price will be re-fetched from the network.
If true, the transaction will be simulated. If the simulation results on an onchain error, endpoint will return an error.
the permit2 message object for the customer to sign to permit spending by the permit2 contract.
Swap safety mode will automatically sweep the transaction for the native token and return it to the sender wallet address. This is to prevent accidental loss of funds in the event that the token amount is set in the transaction value instead of as part of the calldata.
SAFE
The unix timestamp at which the order will be reverted if not filled.
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
.
normal
, fast
, urgent