Build a close-position transaction
build_closeBuild an unsigned transaction to remove all liquidity and collect fees from a Uniswap v3 position. Optionally burn the NFT. Returns the unsigned transaction and position details.
Instructions
Build an UNSIGNED tx that removes all liquidity and collects everything from a Uniswap v3 position (multicalls when needed). Returns the tx (+ unsigned rlp) plus the read position. Set burn=true to also burn the now-empty NFT in the same multicall. Set simulate=false to skip the eth_call dry-run (on by default).
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": {
"chainId": "<chainId>",
"positionId": "<positionId>",
"recipient": "<recipient>"
},
"name": "build_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| burn | No | ||
| chainId | Yes | ||
| simulate | No | ||
| recipient | Yes | ||
| positionId | Yes |