78trust / 100

Random Proof

by touchstone.locomot.io in Other

x402 APIPassing, checked 49 min ago

Provably-fair draw from the drand beacon with the full verifiable receipt + nonce-binding (the free draw is at GET /random).

GET https://touchstone.locomot.io/random/proof

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
763 ms typical, 763 ms slowest 5%
Last check
49 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://touchstone.locomot.io/random/proof?items=alice%2Cbob%2Ccarol%2Cdave&k=1&nonce=raffle-1&op=pick"
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%2Ftouchstone.locomot.io%2Frandom%2Fproof
const res = await pay("https://touchstone.locomot.io/random/proof?items=alice%2Cbob%2Ccarol%2Cdave&k=1&nonce=raffle-1&op=pick");
console.log(await res.json());

Example input

{
  "items": "alice,bob,carol,dave",
  "k": 1,
  "nonce": "raffle-1",
  "op": "pick"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
49 min agoPassed402763 ms$0.001
4 h agoPassed402856 ms$0.001
9 h agoPassed402253 ms$0.001