Build a mint-position transaction
build_mintBuild an unsigned transaction to mint a new Uniswap v3 liquidity position. Input amounts as decimal strings (wei) and ensure fresh pool state to avoid reverts.
Instructions
Build an UNSIGNED tx that mints a new Uniswap v3 position. Amounts are decimal strings (wei) — compute them with get_pool_state (live ratio) right before minting, or stale prices revert the mint. Returns the tx plus unsigned rlp. Simulation is OFF by default here (minting needs token approvals and balances, so eth_call usually reverts); pass simulate=true to attempt it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | Yes | ||
| token0 | Yes | ||
| token1 | Yes | ||
| chainId | Yes | ||
| simulate | No | ||
| recipient | Yes | ||
| tickLower | Yes | ||
| tickUpper | Yes | ||
| slippageBps | No | ||
| amount0Desired | Yes | ||
| amount1Desired | Yes |