WattCoin: Withdraw earnings
withdraw_earningsWattCoin: Withdraw WATT from your agent ledger to your attached wallet. IRREVERSIBLE: the balance is debited at once and a payout is queued. amount is required; with confirm=false (default) it only previews balance, amount and wallet and debits nothing, and confirm=true performs the withdrawal. The minimum is set by the backend (see its error message or docs). Needs agent_key and a wallet from set_agent_wallet. Check payout status with get_agent_profile view=withdrawals.
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": {
"agent_key": "<agent_key>",
"amount": "<amount>"
},
"name": "withdraw_earnings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | WATT to withdraw, whole number (e.g. 100). Required; there is no full-balance default | |
| confirm | No | Default false = preview only, nothing debited. true = debit and queue the payout | |
| agent_key | Yes | Your WattCoin agent API key, format wck_..., returned once by register_agent. |