Authorizations
Body
The protocol to use for the swap/order.
V2
, V3
, V4
, UNISWAPX_V2
, UNISWAPX_V3
The address of the NFT representing the position. Required when requesting approval for removing liquidity from a V2 position (provide address of V2 NFT). Required when requesting approval for migrating a V3 position to a V4 position (provide address of V3 NFT).
The amount of token0 to be added or removed from the position. To estimate the amount of token0 needed when adding a new position, use the /lp/create endpoint to simulate the position creation.
The amount of token1 to be added or removed from the position. To estimate the amount of token1 needed when adding a new position, use the /lp/create endpoint to simulate the position creation.
Indicates whether you want toreceive a permit2 transaction to sign and submit onchain, or a permit message to sign. When set to true
, the quote response returns the Permit2 as a calldata which the user signs and broadcasts. When set to false
(the default), the quote response returns the Permit2 as a message which the user signs but does not need to broadcast. When using a 7702-delegated wallet, set this field to true
. Except for this scenario, it is recommended that this field is set to false. Note that a Permit2 calldata (e.g. true
), will provide indefinite permission for Permit2 to spend a token, in contrast to a Permit2 message (e.g. false
) which is only valid for 30 days. Further, a Permit2 calldata (e.g. true
) requires the user to pay gas to submit the transaction, whereas the Permit2 message (e.g. false
) does not require the user to submit a transaction and requires no gas.
Only required when getting approval for removing a V2 position. Populated with the amount of the V2 position to be removed (eg. amount0*amount1).
Response
Approve LP successful.
A unique ID for the request.
the permit2 message object for the customer to sign to permit spending by the permit2 contract.
The total estimated gas cost of this transaction (eg. gasLimit
multiplied by maxFeePerGas
) in the base unit of the chain.
The total estimated gas cost of this transaction (eg. gasLimit
multiplied by maxFeePerGas
) in the base unit of the chain.
The total estimated gas cost of this transaction (eg. gasLimit
multiplied by maxFeePerGas
) in the base unit of the chain.
The total estimated gas cost of this transaction (eg. gasLimit
multiplied by maxFeePerGas
) in the base unit of the chain.
The total estimated gas cost of this transaction (eg. gasLimit
multiplied by maxFeePerGas
) in the base unit of the chain.
The total estimated gas cost of this transaction (eg. gasLimit
multiplied by maxFeePerGas
) in the base unit of the chain.
The total estimated gas cost of this transaction (eg. gasLimit
multiplied by maxFeePerGas
) in the base unit of the chain.
The total estimated gas cost of this transaction (eg. gasLimit
multiplied by maxFeePerGas
) in the base unit of the chain.