prepare_compound_withdraw
Prepare an unsigned Compound V3 withdrawal transaction. Specify asset, amount, and wallet address; use 'max' for full balance withdrawal.
Instructions
Build an unsigned Compound V3 withdraw transaction. Pass amount: "max" to withdraw the full supplied balance.
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": {
"wallet": "<wallet>",
"market": "<market>",
"asset": "<asset>",
"amount": "<amount>"
},
"name": "prepare_compound_withdraw"
}
}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. |