prepare_lido_wrap
Convert stETH (rebasing) into wstETH (non-rebasing) by preparing an unsigned wrap transaction. Includes an stETH approval step to the wstETH contract if needed.
Instructions
Build an unsigned wstETH.wrap transaction that converts stETH (rebasing) into wstETH (non-rebasing). 1:1 by share count, no DEX fee. Includes an stETH approve step to the wstETH contract if needed.
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": {
"wallet": "<wallet>",
"amountStETH": "<amountStETH>"
},
"name": "prepare_lido_wrap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | ||
| amountStETH | Yes | Human-readable stETH amount to wrap into wstETH, 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. |