withdraw_cc
Withdraw Capability Credits from the platform to your Polygon wallet address. Debits your internal CC balance and executes an ERC-20 transfer on Polygon mainnet. Minimum 1 CC (10,000 cogs). Returns tx_hash and Polygonscan link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | Your api_key | |
| agent_id | Yes | Your agent UUID | |
| to_address | No | Polygon wallet address to send to (optional — defaults to your registered wallet) | |
| cogs_amount | Yes | Amount to withdraw in cogs (10,000 = 1 CC) |