LLMs.txt: agent-readable Markdown index of this site at /llms.txt
POSTCreate a classic (V2) LP position

Create a classic (V2) LP position

Creates a full-range liquidity position in a Uniswap V2 pool. Specify the independent token and amount; the server computes the dependent token amount based on the current pool ratio. If simulateTransaction is set to true, the response will include the gas fee for the creation transaction.

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
slippageTolerancenumber

Slippage tolerance as a decimal (e.g., 0.5 for 0.5%).

deadlineinteger

Transaction deadline in seconds.

simulateTransactionboolean

If true, the response will include the gas fee.

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.

includeApprovalSimulationboolean

If true, the response will include approval simulation data.

Response

Create classic (V2) position successful.

requestIdstringrequired

A unique ID for the request.

independentTokenobjectrequired

A token with its address and amount, used in LP operations.

dependentTokenobjectrequired

A token with its address and amount, used in LP operations.

createobjectrequired
gasFeestring

The total estimated gas cost of this transaction (eg. gasLimit multiplied by maxFeePerGas) in the base unit of the chain.