80trust / 100

Gacha Rng Verify

by gaming.halowerk.com in Security & trust

x402 APIPassing, checked 3 h ago

Counts supplied outcomes, computes Pearson’s chi-square statistic, and estimates an upper-tail p-value with the Wilson-Hilferty normal approximation. It tests aggregate frequencies only; it cannot prove draw independence, seed fairness, code integrity, or manipulation, especially when expected counts are small.

POST https://gaming.halowerk.com/v1/gacha-rng-verify

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://gaming.halowerk.com/v1/gacha-rng-verify" \
  -H "content-type: application/json" \
  -d '{"alpha":0.05,"draws":["common","common","rare","common","common","common","rare","common","common","legendary","common","common","rare","common","common","common","rare","common","common","common"],"outcomes":[{"outcome":"common","probability":0.8},{"outcome":"rare","probability":0.18},{"outcome":"legendary","probability":0.02}]}'
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%2Fgaming.halowerk.com%2Fv1%2Fgacha-rng-verify
const res = await pay("https://gaming.halowerk.com/v1/gacha-rng-verify", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"alpha":0.05,"draws":["common","common","rare","common","common","common","rare","common","common","legendary","common","common","rare","common","common","common","rare","common","common","common"],"outcomes":[{"outcome":"common","probability":0.8},{"outcome":"rare","probability":0.18},{"outcome":"legendary","probability":0.02}]}),
});
console.log(await res.json());

Example input

{
  "alpha": 0.05,
  "draws": [
    "common",
    "common",
    "rare",
    "common",
    "common",
    "common",
    "rare",
    "common",
    "common",
    "legendary",
    "common",
    "common",
    "rare",
    "common",
    "common",
    "common",
    "rare",
    "common",
    "common",
    "common"
  ],
  "outcomes": [
    {
      "outcome": "common",
      "probability": 0.8
    },
    {
      "outcome": "rare",
      "probability": 0.18
    },
    {
      "outcome": "legendary",
      "probability": 0.02
    }
  ]
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402130 ms$0.004
6 h agoPassed402133 ms$0.004
10 h agoPassed402133 ms$0.004
13 h agoPassed40233 ms$0.004
17 h agoPassed402210 ms$0.004
21 h agoPassed40234 ms$0.004
24 h agoPassed40295 ms$0.004
30 h agoPassed40235 ms$0.004