Crypto Random Bytes
by fittings in Onchain & crypto
Generate CSPRNG bytes from the Web Crypto API, returned as hex, base64 or a UUID. Never Math.random.
https://fittings.sh/v1/crypto/random-bytes- Price
- $0.0031
- per call in USDC
- Uptime
- 83.3%
- last 30 days
- Response time
- 1.4 s
- 5.2 s slowest 5%
- Last check
- Passed
- 2 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://fittings.sh/v1/crypto/random-bytes
Each call costs $0.003103 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://fittings.sh/v1/crypto/random-bytes?bytes=32&encoding=hexParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
bytes | number | No | 1-1024 |
encoding | string | No | hex | base64 | uuid |
Example response
The listing has no example response.
Call it from code
The curl command shows the payment challenge.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://fittings.sh/v1/crypto/random-bytes?bytes=32&encoding=hex'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://fittings.sh/v1/crypto/random-bytes?bytes=32&encoding=hex' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeWe don't show code that pays this service: it uses a payment scheme other than exact, which needs a different client setup.
Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 950 ms | $0.0031 |
| 8 h ago | Passed | 402 | 1.6 s | $0.0031 |
| 13 h ago | Passed | 402 | 269 ms | $0.0031 |
| 17 h ago | Passed | 402 | 1.2 s | $0.0031 |
| 22 h ago | Passed | 402 | 872 ms | $0.0031 |
Show 10 older checks
| 27 h ago | Passed | 402 | 125 ms | $0.0031 |
| 32 h ago | Passed | 402 | 1.1 s | $0.0031 |
| 36 h ago | Passed | 402 | 1.7 s | $0.0031 |
| 41 h ago | Passed | 402 | 1.4 s | $0.0031 |
| 45 h ago | Passed | 402 | 1.3 s | $0.0031 |
| 2 days ago | Passed | 402 | 1.8 s | $0.0031 |
| 2 days ago | Passed | 402 | 1.1 s | $0.0031 |
| 2 days ago | Passed | 402 | 1.6 s | $0.0031 |
| 3 days ago | Passed | 402 | 2.3 s | $0.0031 |
| 3 days ago | Passed | 402 | 807 ms | $0.0031 |