Prepare: take gAIX out of bgAIX
gaix_withdrawUnsigned transactions to take gAIX out of bgAIX back to the wallet (amount, or all: true), as much as is not lent out to shorts right now. 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": "gaix_withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | true closes or takes out everything | |
| amount | No | gAIX to take out, as a decimal string | |
| wallet | Yes | The wallet's address (0x...); the transactions are built for it to sign |