Skip to main content
POST
/
lp
/
claim
Claim LP fees calldata
curl --request POST \
  --url https://trade-api.gateway.uniswap.org/v1/lp/claim \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "protocol": "V2",
  "tokenId": 123,
  "position": {
    "pool": {
      "token0": "<string>",
      "token1": "<string>",
      "fee": 123,
      "tickSpacing": 123,
      "hooks": "<string>"
    },
    "tickLower": 123,
    "tickUpper": 123
  },
  "walletAddress": "<string>",
  "chainId": 1,
  "expectedTokenOwed0RawAmount": "<string>",
  "expectedTokenOwed1RawAmount": "<string>",
  "collectAsWETH": true,
  "simulateTransaction": true
}'
{
  "requestId": "<string>",
  "claim": {
    "to": "<string>",
    "from": "<string>",
    "data": "<string>",
    "value": "<string>",
    "gasLimit": "<string>",
    "chainId": 1,
    "maxFeePerGas": "<string>",
    "maxPriorityFeePerGas": "<string>",
    "gasPrice": "<string>"
  },
  "gasFee": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
protocol
enum<string>

The protocol to use for the swap/order.

Available options:
V2,
V3,
V4,
UNISWAPX_V2,
UNISWAPX_V3
tokenId
number
position
object
walletAddress
string
chainId
enum<number>

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

Available options:
1,
10,
56,
130,
137,
324,
480,
1868,
8453,
10143,
42161,
42220,
43114,
81457,
7777777,
1301,
84532,
11155111
expectedTokenOwed0RawAmount
string
expectedTokenOwed1RawAmount
string
collectAsWETH
boolean
simulateTransaction
boolean

Response

Claim LP Fees successful.

requestId
string

A unique ID for the request.

claim
object
gasFee
string

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

I