prepare_morpho_borrow
Build unsigned Morpho Blue borrow transactions using existing collateral in DeFi markets. Specify wallet, market, and amount to generate transaction data for Ledger approval via WalletConnect.
Instructions
Build an unsigned Morpho Blue borrow transaction. Requires pre-existing collateral in the market.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | 0x-prefixed EVM wallet address (40 hex chars) that will execute this action. | |
| chain | No | EVM chain Morpho Blue is deployed on. Currently only ethereum is enabled. | ethereum |
| marketId | Yes | Morpho Blue market id — 32-byte hex (0x + 64 hex chars). Identifies the market's (loanToken, collateralToken, oracle, irm, lltv) tuple. Discover via get_morpho_positions. | |
| amount | Yes | Human-readable decimal amount, NOT raw wei/base units. Example: "10" for 10 USDC. Pass "max" for full-balance withdraw/repay. |