Wallet
Sweep Wallet
Drain the agent wallet back to the treasury — decommission
POST
The decommission path. Drains the wallet’s full USDC balance to
Sweeping emits a
To a specific address rather than the treasury:
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.
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.
wallet.swept audit event recording the destination and the amount moved.