prepare_compound_withdraw
Build unsigned Compound V3 withdraw transactions for ERC-20 tokens from Comet markets across multiple EVM chains, specifying exact amounts or full balance withdrawals.
Instructions
Build an unsigned Compound V3 withdraw transaction. Pass amount: "max" to withdraw the full supplied balance.
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 the Comet market lives on. Defaults to ethereum. | ethereum |
| market | Yes | Comet market address (e.g. cUSDCv3). Discover via get_compound_positions or the Compound registry. | |
| asset | Yes | ERC-20 token address being supplied or withdrawn — either the market's base token or a listed collateral token. | |
| amount | Yes | Human-readable decimal amount of `asset`, NOT raw wei/base units. Example: "10" for 10 USDC. Pass "max" for full-balance withdraw. |