Loading...
Loading...
Generate CSPRNG bytes from the Web Crypto API, returned as hex, base64 or a UUID. Never Math.random. Called as GET /v1/crypto/random-bytes, it takes bytes, encoding and returns value, encoding. Observed on-chain demand: agents need unguessable nonces, tokens and idempotency keys, and a language runtime without a CSPRNG or a model asked to "pick a random number" both produce predictable output. Reading this schema and dry-running the call are free and need no wallet; a real call costs $0.003, paid in USDC on Base over x402.
npx skill4agent add fittings-sh/fittings fittings-crypto-random-bytescrypto.random-byteshttps://fittings.shGET https://fittings.sh/v1/crypto/random-bytes| Field | Type | Required | Notes |
|---|---|---|---|
| number | no | 1-1024 |
| string | no | hex | base64 | uuid |
{
"bytes": 32,
"encoding": "hex"
}| Price | $0.003 per call, metered per bytes |
| Source | none (pure compute) |
| Licence | none-needed |
fittingscall.mjscurl -sO https://fittings.sh/skill/call.mjscurl -s https://fittings.sh/catalog/crypto.random-bytes | jq402 Payment Required# Dry run. Prints the quote and pays nothing, because no key is set.
node call.mjs crypto.random-bytes bytes=32 encoding=hex
# For real: a wallet holding USDC on Base, and nothing else.
export FITTINGS_PRIVATE_KEY=0x...
node call.mjs crypto.random-bytes bytes=32 encoding=hexFITTINGS_PRIVATE_KEYFITTINGS_MAX_PRICE@x402/core@x402/evmfittingshttps://fittings.sh/catalog/search?q=...