POST
/
lp
/
claim_rewards
Claim LP rewards calldata
curl --request POST \
  --url https://trade-api.gateway.uniswap.org/v1/lp/claim_rewards \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "walletAddress": "<string>",
  "chainId": 1,
  "tokens": [
    "<string>"
  ],
  "distributor": "MERKL",
  "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
walletAddress
string

The wallet address which will be used to claim.

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
tokens
string[]

The token addresses to claim rewards for.

distributor
enum<string>

The distributor of the rewards.

Available options:
MERKL
simulateTransaction
boolean

Response

Claim LP Rewards 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.