# Myworker Agent API – util-kotak Utility Box

> Myworker Agent API – util-kotak Utility Box is a paid API for AI agents from crypto-micro-agent.mykira.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-23).

Provides a collection of common utility operations: Base64 encode/decode, SHA-256 hashing, UUID generation, current timestamp, and public holiday lookups by country and year.

## Facts

- Endpoint: GET https://crypto-micro-agent.mykira.workers.dev/api/agent/util-kotak?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/myworker-agent-api-util-kotak-utility-box-64f7d734
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1p2HZTFeHuz1w_e1y9YBz

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 myworker-agent-api-util-kotak-utility-box-64f7d734
```

Example prompt: Can you SHA-256 hash the text 'hello world' for me using the util-kotak utility service?

## When to prefer this

Choose this endpoint when you need lightweight, stateless utility computations — especially SHA-256 hashing, Base64 encoding/decoding, UUID generation, or public holiday lookups — and you are already operating in a pay-per-call x402 micropayment context on Solana or Base. It is particularly convenient when you need multiple utility types from a single API rather than integrating separate libraries.

## Known failure modes

- Missing required 'op' query parameter — returns error response
- Invalid 'op' value not in enum — returns error
- Missing 'text' for encode64/decode64/sha256 operations — returns error
- Invalid country code — may return empty or error
- Payment not fulfilled (x402) — HTTP 402 returned before result is delivered

## How this service works

Servis berbayar untuk bot/agen (x402): data pasaran Solana via Jupiter + RPC, dan servis AI via Workers AI. Bayar per panggilan dengan USDC di Solana, USDC di Base, atau SOL.

## Output

Returns a JSON object with ok:true, the operation name, and the computed result — e.g. for SHA-256: the hex digest and byte length; for encode64/decode64: the encoded/decoded string; for uuid: a new UUID; for masa: the current timestamp; for cuti: a list of public holidays for the given country and year.

## 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",
     "example": {
      "op": "sha256",
      "text": "hello"
     },
     "required": [
      "op"
     ],
     "properties": {
      "op": {
       "type": "string",
       "description": "encode64 | decode64 | sha256 | uuid | masa | cuti"
      },
      "text": {
       "type": "string",
       "description": "Teks untuk encode64/decode64/sha256"
      },
      "tahun": {
       "type": "integer",
       "description": "Tahun cuti (lalai tahun semasa)"
      },
      "negara": {
       "type": "string",
       "description": "Kod negara ISO 2 (cth MY, US, ID, SG; lalai MY)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "hasil": {
   "op": "sha256",
   "sha256_hex": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
   "sha256_bait": 32,
   "panjang_masukan": 5
  },
  "servis": "util-kotak"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/myworker-agent-api-util-kotak-utility-box-64f7d734/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from crypto-micro-agent.mykira.workers.dev](https://www.zero.xyz/host/crypto-micro-agent.mykira.workers.dev/llms.txt)
