zest_enable_collateral
Registers existing zTokens as collateral on Zest Protocol v2 so assets deposited directly to a vault can be used for borrowing.
Instructions
Add existing zTokens as collateral on Zest Protocol v2.
Use this when you deposited directly to a vault and need to register those zTokens as collateral for borrowing.
Note: zest_supply already handles this atomically via supply-collateral-add. This tool is only needed if you used vault deposit separately.
Mainnet only.
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_enable_collateral"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Asset symbol (e.g., 'sBTC', 'USDC') or full contract ID | |
| amount | Yes | Amount of zTokens to add as collateral (in smallest units) |