prepare_lido_unstake
Build unsigned Lido withdrawal transactions to convert stETH to ETH, with optional approval controls for gas optimization.
Instructions
Build an unsigned Lido withdrawal request transaction. Wraps requestWithdrawals on the Lido Withdrawal Queue and includes an approve step if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | ||
| amountStETH | Yes | Human-readable stETH amount, NOT raw wei. Example: "0.5" for 0.5 stETH (18 decimals). | |
| approvalCap | No | Cap on the ERC-20 approval preceding this action. Omit for "unlimited" (standard DeFi UX — fewer follow-up approvals). Pass "exact" to approve only what this action pulls. Pass a decimal string (e.g. "500") for a specific ceiling in the asset's human units; must be ≥ the action amount, otherwise the transaction would revert. |