Check LP token approvals
npx skills add uniswap/uniswap-ai --skill liquidity-plannerPlan LP positions with deep links. Works with Claude Code, Cursor, and other AI coding tools.
Authorization
x-api-keystringrequiredheaderBody
application/jsonwalletAddressstringrequiredprotocolenumrequiredThe protocol of the pool.
chainIdenumrequireddefault:1The unique ID of the blockchain. For a list of supported chains see the FAQ.
actionenumrequiredThe LP operation that the approval is needed for.
includeGasInfobooleanIf true, the response will include gas fee estimates for each approval transaction.
simulateTransactionbooleanIf true, approval transactions will be simulated to verify they succeed.
generatePermitAsTransactionbooleanIf true, permits are returned as on-chain transactions rather than off-chain signatures.
urgencyenumThe urgency level for gas price estimation. Higher urgency results in higher gas price and faster transaction inclusion. Defaults to URGENT if not provided.
v3NftTokenIdintegerThe V3 NFT position token ID. Required when approving a V3 position for migration.
Response
LP approval check successful.
requestIdstringrequiredA unique ID for the request.
transactionsobject[]The approval transactions needed. Empty if all approvals are already in place.
v4BatchPermitDataobjectBatch permit data for V4 positions, if applicable.
v3NftPermitDataobjectNFT permit data for V3 positions, if applicable.
/lp/check_approvalcurl --request POST \
--url 'https://liquidity.api.uniswap.org/lp/check_approval' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"walletAddress": "<string>",
"protocol": "<enum>",
"chainId": 1,
"lpTokens": "<object[]>",
"action": "<enum>"
}'{ "requestId": "<string>", "transactions": [ { "transaction": { "to": "<string>", "from": "<string>", "data": "<string>", "value": "<string>", "gasLimit": "<string>", "chainId": "<number>", "maxFeePerGas": "<string>", "maxPriorityFeePerGas": "<string>", "gasPrice": "<string>" }, "cancelApproval": "<boolean>", "action": "<string>", "gasFee": "<string>" } ], "v4BatchPermitData": { "domain": {}, "values": {}, "types": {} }, "v3NftPermitData": { "domain": {}, "values": {}, "types": {} }}