prepare_rocketpool_unstake
Creates an unsigned Rocket Pool unstake transaction by burning rETH for ETH from on-protocol collateral, checking wallet balance and collateral sufficiency, and directing to Uniswap V3 if collateral is low.
Instructions
Build an unsigned Rocket Pool unstake transaction (rETH.burn(uint256), redeems rETH for ETH from on-protocol collateral). No approval needed — burn operates on caller's balance. Preflights wallet rETH balance and rETH contract collateral; if collateral is insufficient, refuses with a hint to unwind via the rETH/ETH Uniswap V3 pool instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | ||
| amountReth | Yes | Human-readable rETH amount to burn for ETH, NOT raw wei. Example: "0.5" for 0.5 rETH (18 decimals). Burning requires sufficient on-protocol ETH collateral (rETH contract balance + RocketDepositPool excess); if collateral is insufficient, sell rETH on the rETH/ETH Uniswap V3 pool instead via `prepare_uniswap_swap`. |