The response will have the transaction to claim the rewards. If the parameter simulateTransaction is set to true, then the response will include the gas fees for the claim transaction.
simulateTransaction
true
cURL
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>" }
1
10
56
130
137
324
480
1868
8453
10143
42161
42220
43114
81457
7777777
1301
84532
11155111
143
MERKL
Show child attributes