66trust / 100

Crypto Random Bytes

by fittings in Onchain & crypto

x402 APIPassing, checked 2 h ago

Generate CSPRNG bytes from the Web Crypto API, returned as hex, base64 or a UUID. Never Math.random.

GET
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

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

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=hex

Parameters

ParameterTypeRequiredDescription
bytesnumberNo1-1024
encodingstringNohex | 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 --decode

We 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

WhenResultHTTPTimePrice
2 h agoPassed402950 ms$0.0031
8 h agoPassed4021.6 s$0.0031
13 h agoPassed402269 ms$0.0031
17 h agoPassed4021.2 s$0.0031
22 h agoPassed402872 ms$0.0031
Show 10 older checks
27 h agoPassed402125 ms$0.0031
32 h agoPassed4021.1 s$0.0031
36 h agoPassed4021.7 s$0.0031
41 h agoPassed4021.4 s$0.0031
45 h agoPassed4021.3 s$0.0031
2 days agoPassed4021.8 s$0.0031
2 days agoPassed4021.1 s$0.0031
2 days agoPassed4021.6 s$0.0031
3 days agoPassed4022.3 s$0.0031
3 days agoPassed402807 ms$0.0031