Prepare: withdraw from Zero Dark
darkroom_withdrawAn unsigned transaction to withdraw USDG or a stock from the wallet's own Zero Dark balance to the wallet. The owner's own call: session keys cannot withdraw. Inside a 30 second settlement window an account with orders in a book waits until the window ends. Every order in a book needs its market's smallest fill held in that stock or in USDG: withdraw below that and anyone can sweep the account's orders placed more than 10 minutes ago, the newest before the older ones, in the book the sweeper picks. 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>",
"token": "<token>",
"amount": "<amount>"
},
"name": "darkroom_withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | USDG or a market's symbol | |
| amount | Yes | A decimal amount | |
| wallet | Yes | The wallet's address (0x...): the transactions are built for it to sign |