Prepare an order withdrawal
peer_cash_prepare_withdrawPrepare an unsigned withdrawal transaction for unmatched funds, specifying a partial Base USDC amount or omitting it to close the order.
Instructions
Prepare unsigned transactions to withdraw unmatched funds. Omit amount to close the order; pass a Base USDC base-unit amount for a partial withdrawal.
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": {
"depositId": "<depositId>"
},
"name": "peer_cash_prepare_withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | ||
| depositId | Yes |