Skip to main content
POST
The decommission path. Drains the wallet’s full USDC balance to to (defaulting to the tenant treasury wallet) and marks the wallet revoked. The wallet row is not deleted — the agent simply has nothing left to spend.
Operator only. Sweeping requires an operator credential: a signed-in dashboard session, or an API key minted with the wallet:admin scope. An agent key is refused with 403 (reason: wallet_admin_requires_operator).

Request Body

If to is omitted and the tenant has no treasury wallet, the call fails with 400 invalid_input — there is no destination to drain to.
Sweeping emits a wallet.swept audit event recording the destination and the amount moved.

Errors

CLI

To a specific address rather than the treasury:

MCP

No MCP tool — deliberately. Decommissioning a wallet is the operator surface.