Prepare owner withdraw
prepare_mandate_withdrawSend idle tokens from the account to its owner, the only address the contract can send them to. Collateral in a position is not idle. Returns UNSIGNED transaction data for the owner's own wallet; simulated first and refused if it would revert. Never signs or sends.
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": {
"account": "<account>",
"amount": "<amount>"
},
"name": "prepare_mandate_withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Optional: token address. Default USDG | |
| amount | Yes | Amount as a decimal string, or "all" | |
| account | Yes | Mandate account address (0x...) |