Prepare: take back what is lent
withdrawUnsigned transaction to take back lent stock or USDG (part, or all with all: true). Stock on loan to shorters comes back once it is returned.
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>",
"asset": "<asset>"
},
"name": "withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Take back everything | |
| asset | Yes | USDG, or a stock symbol | |
| amount | No | Amount to take back, 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 |