Checks whether the wallet has the required token approvals to perform an LP action (create, increase, decrease, or migrate). Returns any needed approval transactions. If simulateTransaction is set to true, the response will include gas fees for the approval transactions.
The action field specifies which LP operation the approval is for. Different actions may require different approvals (e.g., V2 decrease requires approval of the LP token, V3 migrate requires approval of the V3 NFT).
protocol — The Uniswap protocol version (V2, V3, or V4)chain_id — The blockchain networklp_tokens — The tokens involved in the LP action, with their addresses and amountsaction — The LP action being performed: CREATE, INCREASE, DECREASE, or MIGRATEgenerate_permit_as_transaction — If true, returns permit signatures as executable transactions instead of typed dataApprovalTransactionRequest objects, each containing a fully-formed transaction to sign. If all approvals are already in place, the list will be empty.
^(0x)?[0-9a-fA-F]{40}$The protocol to use for the swap/order.
V2, V3, V4, UNISWAPX, UNISWAPX_V2, UNISWAPX_V3 The tokens requiring approval, each with address and amount.
The LP operation that the approval is needed for.
CREATE, INCREASE, DECREASE, MIGRATE If true, the response will include gas fee estimates for each approval transaction.
If true, approval transactions will be simulated to verify they succeed.
If true, permits are returned as on-chain transactions rather than off-chain signatures.
The urgency level for gas price estimation. Higher urgency results in higher gas price and faster transaction inclusion. Defaults to URGENT if not provided.
NORMAL, FAST, URGENT The V3 NFT position token ID. Required when approving a V3 position for migration.
LP approval check successful.