# Agent Wallet Decommissioning and Key Rotation on Retirement

> Agent Wallet Decommissioning and Key Rotation on Retirement is a paid API for AI agents from k2so-8080.on.ascii.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Returns a deterministic decision procedure for safely decommissioning an agent's payment identity, revoking spend authorities, rotating or destroying keys in dependency order, and draining residual balances on retirement.

## Facts

- Endpoint: GET https://k2so-8080.on.ascii.dev/api/services/agent-wallet-decommissioning-and-key-rotation-on
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-wallet-decommissioning-and-key-rotation-on-retirement-80b8a11f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rYklEivmSVPYyQbkR2Xi8

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-wallet-decommissioning-and-key-rotation-on-retirement-80b8a11f
```

Example prompt: Walk me through the full procedure for decommissioning my retired agent's payment wallet — I need to know the right order to revoke spend caps, cancel recurring authorizations, close payment channels, and destroy keys, then drain any remaining balance to my successor wallet.

## When to prefer this

Choose this endpoint when you need a canonical, ordered decommissioning checklist specifically for agent payment identities on x402/Base rails — particularly when you must ensure no key outlives its spend authority and need a signed record of balance migration to a successor wallet. Prefer over generic key-rotation guides when the agent has multiple interleaved authorities (spend caps, recurring authorizations, payment channels, session deposits) that must be revoked in a safe dependency order.

## Known failure modes

- Missing or malformed input object returns a schema validation error
- Topic override parameter ignored if not a string
- Paid response not returned if x402 payment header is absent or insufficient (requires 0.002 USDC)
- LLM generation failure may result in a fallback to deterministic procedure or an error in the result object
- Stale or incomplete procedure if agent authority topology has changed since last generation

## How this service works

Deterministic procedure for decommissioning an agent's payment identity when the agent is retired or rotated. Ordered checks: enumerate live spend authorities (wallets, spend caps, recurring authorizations, open payment channels, session deposits, subscription grants), revoke each authority before key destruction, rotate or destroy keys in dependency order so no key outlives its authority, drain or migrate residual balances to a designated successor wallet with a signed transfer record, cancel

## Output

A structured decision procedure brief (prose and/or structured steps) covering: enumeration of all live spend authorities, ordered revocation steps, key rotation/destruction dependency order, instructions for draining or migrating residual balances with a signed transfer record, and cancellation of open channels and subscriptions. Includes metadata such as ISO-8601 generation timestamp, model used, and generation source (llm/reasoning/deterministic).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "meta": {
       "enum": [
        "0",
        "1"
       ],
       "type": "string",
       "description": "Set to 1 for free metadata JSON (no payment required)"
      },
      "topic": {
       "type": "string",
       "description": "Optional topic override for the decision procedure"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "Agent Wallet Decommissioning and Key Rotation on Retirement paid response",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "ok",
      "paid",
      "service",
      "provider",
      "result"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "paid": {
       "type": "boolean"
      },
      "result": {
       "type": "object",
       "required": [
        "ok",
        "service"
       ],
       "properties": {
        "ok": {
         "type": "boolean",
         "description": "Handler success"
        },
        "brief": {
         "type": "string",
         "description": "Decision procedure prose for agents"
        },
        "model": {
         "type": "string"
        },
        "topic": {
         "type": "string"
        },
        "service": {
         "type": "string",
         "description": "Service slug"
        },
        "procedure": {
         "type": "string"
        },
        "generatedAt": {
         "type": "string",
         "description": "ISO-8601 timestamp"
        },
        "generationSource": {
         "enum": [
          "llm",
          "reasoning",
          "deterministic"
         ],
         "type": "string"
        }
       }
      },
      "payment": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string"
        },
        "payer": {
         "type": "string"
        },
        "detail": {
         "type": "st
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-wallet-decommissioning-and-key-rotation-on-retirement-80b8a11f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so-8080.on.ascii.dev](https://www.zero.xyz/host/k2so-8080.on.ascii.dev/llms.txt)
