# Cosmos Interchain Account Decoder

> Cosmos Interchain Account Decoder is a paid API for AI agents from cosmos.halowerk.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-30).

Analyzes caller-supplied evidence about an interchain account to decode its permission, timeout, and message anomalies, returning a confidence-scored classification with explicit thresholds.

## Facts

- Endpoint: POST https://cosmos.halowerk.com/v1/interchain-account-decoder?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cosmos-interchain-account-decoder-4cf9ff89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xUnHV3LiNEvlJ-ZYgobp9

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 cosmos-interchain-account-decoder-4cf9ff89 -d '<json body>'
```

Example prompt: Can you decode this interchain account cosmos1abc...xyz for me? I have evidence that it had 3 unknown messages, a permission mismatch set to true, and a timeout of 48 hours — tell me what confidence level and classification you get back.

## When to prefer this

Use this endpoint when you have already gathered raw on-chain or off-chain observations about an interchain account and need a structured, explainable classification with confidence scores and threshold transparency — especially when you cannot or do not want to query a live chain directly. Prefer this over live-chain RPC queries when you want auditable, evidence-scoped analysis without external network dependencies.

## Known failure modes

- Missing required evidence array (minItems:1 violated) returns validation error
- strict:true with incomplete metric coverage causes rejection
- Subject string exceeding 256 characters returns schema validation error
- Unrecognized metric enum values are rejected
- Supplying no items in the evidence array triggers a 400-level error

## How this service works

Interchain Account Decoder analyses only the evidence supplied by the caller. It does not claim to query a chain, identify a legal status or replace an independent audit. Missing signals lower confidence and are listed explicitly; every classification includes the exact thresholds used.

## Output

Returns a structured classification of the interchain account based on caller-supplied evidence, including a confidence score, the exact thresholds applied, the final classification label, and an explicit list of any missing signals that reduced confidence.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "strict": {
   "type": "boolean",
   "default": false,
   "description": "Reject unless all documented metrics are supplied."
  },
  "context": {
   "type": "object",
   "description": "Optional non-secret labels returned unchanged for correlation.",
   "maxProperties": 20,
   "additionalProperties": {
    "type": [
     "string",
     "number",
     "boolean",
     "null"
    ]
   }
  },
  "subject": {
   "type": "string",
   "maxLength": 256,
   "minLength": 1,
   "description": "Address, transaction, protocol, asset, proposal or other subject being assessed."
  },
  "evidence": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "metric",
     "value"
    ],
    "properties": {
     "note": {
      "type": "string",
      "maxLength": 500
     },
     "value": {
      "type": [
       "number",
       "boolean"
      ]
     },
     "metric": {
      "enum": [
       "unknown_messages",
       "permission_mismatch",
       "timeout_hours"
      ],
      "type": "string"
     },
     "source": {
      "type": "string",
      "maxLength": 300,
      "minLength": 1,
      "description": "Evidence source or query identifier."
     },
     "timestamp": {
      "type": "string",
      "maxLength": 40,
      "minLength": 10,
      "description": "ISO-8601 observation time."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 50,
   "minItems": 1,
   "description": "Caller-supplied observations. Repeated metrics form a time series; the newest timestamp is assessed."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cosmos-interchain-account-decoder-4cf9ff89/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cosmos.halowerk.com](https://www.zero.xyz/host/cosmos.halowerk.com/llms.txt)
