putty
MCPBlockchainDeFi

build_lp_claim_fees

Build the calldata to claim accumulated trading fees from a V3 or V4 LP position. POSTs to `/v1/lp/claim_fees` with the wallet, protocol, and the position's NFT token id. Returns the raw `/lp/claim_fees` response — the unsigned transaction fields the caller's wallet signs and submits. The integration spec called the path `/lp/claim`; the actual Uniswap API endpoint is `/lp/claim_fees`, so the tool follows the docs. V2 positions are not supported (V2 fees auto-compound into the LP token balance). The Putty dashboard signs through the user's Privy embedded wallet in the sign-request modal; external agents sign with their own wallet. The tool never holds a signing key.

Build the calldata to claim accumulated trading fees from a V3 or V4 LP position. POSTs to /v1/lp/claim_fees with the wallet, protocol, and the position's NFT token id.

Input

The tool takes a single JSON object. Every field, its type, and an example are on the generated reference at GET /mcp/tools, under this tool's name.

Calling it

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "build_lp_claim_fees", "arguments": {} }
}

Put your arguments in place of the empty object. A call that fails comes back as a normal result carrying isError: true and a message naming what went wrong, not as a JSON-RPC protocol error.

Notes

Returns the raw /lp/claim_fees response — the unsigned transaction fields the caller's wallet signs and submits. The integration spec called the path /lp/claim; the actual Uniswap API endpoint is /lp/claim_fees, so the tool follows the docs. V2 positions are not supported (V2 fees auto-compound into the LP token balance). The Putty dashboard signs through the user's Privy embedded wallet in the sign-request modal; external agents sign with their own wallet. The tool never holds a signing key.

The full request and response shape, and a live playground, live on the generated reference at GET /mcp/tools.

On this page