Prepare a withdrawal
prepare_withdrawalWithdrawals are closed while Obento is paused, so this returns an error. Builds the two calls that withdraw from Obento: approve the gateway to take the obUSD, then redeem with a 0.5% minimum out and partner ID 2. Leave out the amount to withdraw everything. Says whether the USDC arrives at once or on Autopilot's next pass. Sends nothing itself.
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": {
"address": "<address>"
},
"name": "prepare_withdrawal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | USDC to withdraw, in dollars; leave out to withdraw everything | |
| address | Yes | The address that holds the obUSD | |
| receiver | No | Where the USDC goes; the address itself if left out |