79trust / 100
Pick
by Verifiable Random Tools in AI models & inference
x402 APIPassing, checked 29 min ago
Verifiable Random pick — string selection with or without replacement bound to a future drand round the server waits for (typically 3-6s) and verifies locally, with a reproducible proof transcript.
POST https://verifiable-random.use.x402atlas.com/pick
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 457 ms typical, 481 ms slowest 5%
- Last check
- 29 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://verifiable-random.use.x402atlas.com/pick" \
-H "content-type: application/json" \
-d '{"algorithm_version":"drand-hkdf-sha256-v1","client_seed":"example","count":2,"items":["red","green","blue"],"replacement":false,"target_round":0}'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%2Fverifiable-random.use.x402atlas.com%2Fpick
const res = await pay("https://verifiable-random.use.x402atlas.com/pick", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"algorithm_version":"drand-hkdf-sha256-v1","client_seed":"example","count":2,"items":["red","green","blue"],"replacement":false,"target_round":0}),
});
console.log(await res.json());Example input
{
"algorithm_version": "drand-hkdf-sha256-v1",
"client_seed": "example",
"count": 2,
"items": [
"red",
"green",
"blue"
],
"replacement": false,
"target_round": 0
}Example output
{
"algorithm_version": "drand-hkdf-sha256-v1",
"beacon": {
"chain_hash": "52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971",
"network": "quicknet",
"randomness": "1466a6cd24e327188770752f6134001c64d6efcc590ccc26b721611ad96f165a",
"round": 1,
"scheduled_time": "2023-08-23T15:09:27Z",
"scheme": "bls-unchained-g1-rfc9380",
"signature": "b55e7cb2d5c613ee0b2e28d6750aabbb78c39dcc96bd9d38c2c2e12198df95571de8e8e402a0cc48871c7089a2b3af4b"
},
"example_only": true,
"operation": "pick",
"processed_at": "2023-08-23T15:09:27Z",
"request_hash": "bf26799b7b70582f93b7ab7e9ea1428d812387b32e3177c521ed38f09306abcc",
"result": {
"items": [
"red",
"green"
],
"original_indices": [
0,
1
]
},
"selection_mode": "example_only",
"target_round": 1
}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 |
|---|---|---|---|---|
| 29 min ago | Passed | 402 | 471 ms | $0.005 |
| 4 h ago | Passed | 402 | 461 ms | $0.005 |
| 7 h ago | Passed | 402 | 477 ms | $0.005 |
| 11 h ago | Passed | 402 | 457 ms | $0.005 |
| 14 h ago | Passed | 402 | 449 ms | $0.005 |
| 18 h ago | Passed | 402 | 420 ms | $0.005 |
| 22 h ago | Passed | 402 | 551 ms | $0.005 |
| 25 h ago | Passed | 402 | 481 ms | $0.005 |
| 30 h ago | Passed | 402 | 399 ms | $0.005 |
| 33 h ago | Passed | 402 | 424 ms | $0.005 |
| 36 h ago | Passed | 402 | 414 ms | $0.005 |
| 41 h ago | Passed | 402 | 458 ms | $0.005 |