{"uid":"cap_vvG5QbA2qL4zDv5yQ6Q8E","slug":"api-x402node-dev-4c51760e","name":"Cryptographically Secure Random Bytes Generator","description":"Random bytes generator, cryptographic random, CSPRNG, secure random, random token, nonce generator, session key, API secret generator, random hex base64. Generate cryptographically secure random bytes in hex or base64 encoding. Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/crypto/random-bytes","method":"GET","headers":{},"bodySchema":{"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"],"type":"string"},"queryParams":{"type":"object","properties":{"length":{"type":"string","description":"Length (optional)"},"encoding":{"type":"string","description":"Encoding (optional)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0022","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.0022/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Jg0VeuPvCeQsaVpm1whLA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0022","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 (CSPRNG) returned in hex or base64 encoding for use as tokens, nonces, session keys, or API secrets","exampleAgentPrompt":"Generate 32 cryptographically secure random bytes and give me the result as a hex string — I need it as a nonce for an API request.","exampleUseCases":null,"resultDescription":"Returns a cryptographically secure random byte sequence of the requested length, encoded as either a hex string or base64 string, suitable for use as a nonce, session key, API secret, or security token.","failureModes":["Invalid byte count (zero, negative, or excessively large) returns an error","Unsupported encoding type returns a validation error","Payment not received or x402 payment failure prevents request","Network timeout returns a connection error"],"whenToPreferThis":"Choose this endpoint when you need cryptographically secure random bytes (CSPRNG quality) rather than pseudo-random data, especially for security-sensitive use cases like nonces, session tokens, API secrets, or cryptographic keys. Prefer over language-level Math.random() or insecure PRNGs when security properties matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:56:11.933Z","isFirstParty":false}