Prepare: take money out of the trade account
account_withdrawUnsigned transaction taking money out of the trade account: USDG (the default), a stock by its ticker or any token by its address, an amount or all: true. The owner can send it to any address (default the owner) at any time, whatever the account holds open; the agent can send it to the owner alone. Simulated from the wallet.
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>"
},
"name": "account_withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Where it goes (default the owner; the agent may send to the owner alone) | |
| all | No | Everything the account holds of it | |
| token | No | USDG (default), a stock's ticker, or a token's address | |
| amount | No | How much to take out, in whole units as a decimal string, like "1.5" | |
| wallet | Yes | The wallet's address (0x...); the transactions are built for it to sign | |
| account | No | A trade account's address (default: the wallet's own, as its owner; an agent gives its owner's account) |