# Cryptographically Secure Random Bytes, Nonce and UUID Generator

> Cryptographically Secure Random Bytes, Nonce and UUID Generator is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Generates cryptographically secure random bytes, nonces, and UUIDs of a specified length via a paid API endpoint.

## Facts

- Endpoint: POST https://twin.unykorn.org/random-bytes?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cryptographically-secure-random-bytes-nonce-and-uuid-generator-91882253
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Mac8OlHPWbH-vl6-Y5Uoh

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 cryptographically-secure-random-bytes-nonce-and-uuid-generator-91882253 -d '<json body>'
```

Example prompt: Generate 32 cryptographically secure random bytes for me — I need them as a nonce for a signing operation.

## When to prefer this

Choose this endpoint when you need verifiably cryptographically secure random bytes, nonces, or UUIDs — especially in blockchain, Web3, or security-sensitive contexts where on-chain payment receipts provide auditability. Prefer this over pseudo-random generators when entropy quality and tamper-evidence matter.

## Known failure modes

- Invalid or negative byte count may return a validation error
- Insufficient payment or x402 payment failure results in 402 response
- Network or node unavailability may cause timeout or 503
- Byte count exceeding server-side maximum may return a 400 error

## How this service works

Cryptographically secure random bytes, nonce and UUID — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON object with ok=true, a type field ('random-bytes'), a generated_at ISO8601 timestamp, and a receipt object containing the on-chain transaction hash, USD amount paid, and a unique receipt ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "bytes": {
     "type": "integer",
     "minimum": 0
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "random-bytes",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.001,
   "receipt_id": "g402-<16hex>"
  },
  "generated_at": "<iso8601>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cryptographically-secure-random-bytes-nonce-and-uuid-generator-91882253/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
