80trust / 100
Roll
by Roll in Onchain & crypto
x402 APIPassing, checked 2 h ago
Verifiable RNG — cryptographically-random integer(s) signed by the treasury key. Drop-in VRF for game studios. $0.001 USDC.
POST https://api.anchor-x402.com/v1/roll
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 672 ms typical, 672 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.anchor-x402.com/v1/roll" \
-H "content-type: application/json" \
-d '{"count":1,"high":100,"label":"treasure_drop_42","low":1}'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%2Fapi.anchor-x402.com%2Fv1%2Froll
const res = await pay("https://api.anchor-x402.com/v1/roll", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"count":1,"high":100,"label":"treasure_drop_42","low":1}),
});
console.log(await res.json());Example input
{
"count": 1,
"high": 100,
"label": "treasure_drop_42",
"low": 1
}Example output
{
"commitment": null,
"count": 1,
"domain": "anchor-x402/roll/v1",
"input_hash": "f4a1c5e3b9d8a2e0c7b4f6d9e1a3c8b5f7d2e4a9c1b6e8f3d5a7c2b4e9f1d6a8",
"label": "treasure_drop_42",
"range": [
1,
100
],
"result": [
47
],
"result_hash": "8a6d1f9e4b2c7a3e5f0c9b8a4d2f6e1c3b7a5f9d2e8c4b6a1f3e7d5c9b2a4f6e",
"scheme": "eip191",
"signature": "0x6b3e2a7c…",
"signer": "0x127462e296fAc1A7F5cF33bA57bB2f0FFf5cD0B6"
}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 | 672 ms | $0.001 |
| 7 h ago | Passed | 402 | 762 ms | $0.001 |