Prepare Uniswap V4 fee collection
prepare_uniswap_v4_collect_feesPoke a V4 position with zero liquidity decrease then take both currencies to the sender. Principal remains invested. Verify ownership, pool key and hook behavior first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain_id": "<chain_id>",
"sender": "<sender>",
"deadline": "<deadline>",
"pool_id": "<pool_id>",
"token0": "<token0>",
"token1": "<token1>",
"fee": "<fee>",
"tick_spacing": "<tick_spacing>",
"token_id": "<token_id>"
},
"name": "prepare_uniswap_v4_collect_fees"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | Yes | ||
| hooks | No | address | |
| sender | Yes | address | |
| token0 | Yes | address | |
| token1 | Yes | address | |
| pool_id | Yes | bytes32 hex | |
| chain_id | Yes | ||
| deadline | Yes | decimal integer | |
| token_id | Yes | decimal integer | |
| hook_data | No | hex bytes | 0x |
| tick_spacing | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| execution_plan_reference | No | artifact_reference; pass unchanged |