80trust / 100

Random

by Tanod utilpeek in Onchain & crypto

x402 APIPassing, checked 2 h ago

utilpeek (Tanod) cryptographic randomness: integers, floats, bytes, UUID v4, dice rolls, picks and shuffles from a CSPRNG. Use when an agent needs cryptographic random integers, floats, bytes, dice rolls, or a random pick or shuffle of a list.

POST https://tanod.dev/v1/random

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
271 ms typical, 737 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://tanod.dev/v1/random' \
  -H 'content-type: application/json' \
  --data-raw '{"dice":"3d6","kind":"dice"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Frandom
const res = await pay("https://tanod.dev/v1/random", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"dice\":\"3d6\",\"kind\":\"dice\"}",
});
console.log(await res.json());

Example input

{
  "dice": "3d6",
  "kind": "dice"
}

Example output

{
  "dice": "3d6",
  "kind": "dice",
  "modifier": 0,
  "rolls": [
    5,
    3,
    4
  ],
  "source": "secrets (operating-system CSPRNG)",
  "total": 12
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402265 ms$0.001
6 h agoPassed402262 ms$0.001
10 h agoPassed402271 ms$0.001
14 h agoPassed402252 ms$0.001
18 h agoPassed402269 ms$0.001
21 h agoPassed402837 ms$0.001
25 h agoPassed402737 ms$0.001
28 h agoPassed402369 ms$0.001
32 h agoPassed402269 ms$0.001
36 h agoPassed402271 ms$0.001
39 h agoPassed402268 ms$0.001
43 h agoPassed402378 ms$0.001
47 h agoPassed402478 ms$0.001
2 days agoPassed402278 ms$0.001
2 days agoPassed402261 ms$0.001