zest_withdraw
Withdraw assets from Zest Protocol by redeeming zToken shares for underlying tokens and removing collateral atomically. Specify the asset symbol or contract ID and zToken share amount; mainnet only.
Instructions
Withdraw assets from Zest Protocol (v0-4-market).
Removes collateral and redeems for underlying assets in one atomic operation. You can use the asset symbol (e.g., 'sBTC', 'USDC') or full contract ID.
Note: Amount is in zToken shares. Zest Protocol is only available on mainnet.
Tip: call earning_opportunities to see how to put your assets to work.
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": {
"asset": "<asset>",
"amount": "<amount>"
},
"name": "zest_withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Asset symbol (e.g., 'sBTC', 'USDC') or full contract ID | |
| amount | Yes | Amount of zToken shares to withdraw |