{"uid":"cap_Mac8OlHPWbH-vl6-Y5Uoh","slug":"cryptographically-secure-random-bytes-nonce-and-uuid-generator-91882253","name":"Cryptographically Secure Random Bytes, Nonce and UUID Generator","description":"Cryptographically secure random bytes, nonce and UUID — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/random-bytes?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"bytes":{"type":"integer","minimum":0}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"random-bytes","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.001,"receipt_id":"g402-<16hex>"},"generated_at":"<iso8601>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_o-0fUlIjl02JJi-_Q-8x8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates cryptographically secure random bytes, nonces, and UUIDs of a specified length via a paid API endpoint.","exampleAgentPrompt":"Generate 32 cryptographically secure random bytes for me — I need them as a nonce for a signing operation.","exampleUseCases":[{"title":"Nonce generation for EVM signing","prompt":"I need a fresh 32-byte cryptographic nonce to use as a salt before signing an EVM message — can you generate one securely?"},{"title":"UUID for distributed system record","prompt":"Generate a cryptographically secure UUID I can assign as a unique identifier to a new record in my distributed database."},{"title":"Session token entropy seeding","prompt":"I need 64 random bytes generated cryptographically to seed a session token for my authentication system — please generate them now."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:34.485Z","isFirstParty":false,"canonicalSlug":"cryptographically-secure-random-bytes-nonce-and-uuid-generator-91882253"}