LLMs.txt: agent-readable Markdown index of this site at /llms.txt
POSTCheck LP token approvals

Check LP token approvals

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

npx skills add uniswap/uniswap-ai --skill liquidity-planner

Plan LP positions with deep links. Works with Claude Code, Cursor, and other AI coding tools.

Authorization

x-api-keystringrequiredheader
Playground key
You're using a shared playground keyCreate a free account and get your own API keys from the dashboard.
Get your keys

Body

application/json
walletAddressstringrequired
protocolenumrequired
V2V3V4

The protocol of the pool.

chainIdenumrequireddefault:1
1105613013714319632448018684217432646635042845310143421614222043114570735914481457777777713018453211155111

The unique ID of the blockchain. For a list of supported chains see the FAQ.

actionenumrequired
CREATEINCREASEDECREASEMIGRATE

The LP operation that the approval is needed for.

includeGasInfoboolean

If true, the response will include gas fee estimates for each approval transaction.

simulateTransactionboolean

If true, approval transactions will be simulated to verify they succeed.

generatePermitAsTransactionboolean

If true, permits are returned as on-chain transactions rather than off-chain signatures.

urgencyenum
NORMALFASTURGENT

The urgency level for gas price estimation. Higher urgency results in higher gas price and faster transaction inclusion. Defaults to URGENT if not provided.

v3NftTokenIdinteger

The V3 NFT position token ID. Required when approving a V3 position for migration.

Response

LP approval check successful.

requestIdstringrequired

A unique ID for the request.

transactionsobject[]

The approval transactions needed. Empty if all approvals are already in place.

v4BatchPermitDataobject

Batch permit data for V4 positions, if applicable.

v3NftPermitDataobject

NFT permit data for V3 positions, if applicable.