Prepare an eMode change (v3)
prepare_set_emodev3 only. Build an unsigned transaction to switch a wallet's Aave v3 eMode category. eMode groups correlated assets (ETH-correlated, stablecoins) so they borrow against each other at a higher LTV, raising borrowing power at the cost of restricting which assets the position may hold. Take categoryId from get_emode_categories for that market; pass 0 to turn eMode off. v3 only: v4 replaces eMode with risk premium and dynamic config.
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": {
"sender": "<sender>",
"market": "<market>",
"categoryId": "<categoryId>",
"chainId": "<chainId>"
},
"name": "prepare_set_emode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | Yes | v3 only: market pool address, from a get_markets row in this session. It cannot be recalled: an Aave pool address you already recognise belongs to another deployment (v2, or another chain) and is rejected. | |
| sender | Yes | Sender wallet address (0x, 40 hex): the wallet that will sign, as the user named it in this session. If no wallet has been named, ask for it; never substitute a placeholder, which is rejected. | |
| chainId | Yes | Chain id (positive integer). | |
| version | No | Optional, and only 'v3': this tool exists on v3 only. | |
| categoryId | Yes | eMode categoryId from get_emode_categories, or 0 to disable. |