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.
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-prefixed (40 hex chars). | |
| 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. |