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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| burn | No | ||
| chainId | Yes | ||
| simulate | No | ||
| recipient | Yes | ||
| positionId | Yes |