A

Animica · Random Commit

by Animica

POSTBaseanimica:1

$0.0054

per call · USD Coin on Base

Commit now, reveal to everyone later: the paid call returns a commitment sha3_256(secret||salt) and a commit id; GET /x402/random/reveal/{commit_id} is FREE, public and idempotent, and discloses the secret, the salt, the raw draw and the node's attestation so anyone — not just the buyer — can check the commitment. Reveal delay 0..604800s. For games, sealed-bid rounds and auditable draws. Trust model, stated plainly: the commitment binds the outcome from the moment you publish it, and the reveal proves the secret came from a node-signed draw — it does NOT prove the operator discarded no draws before committing, so publish the commitment to your players before the round.

Endpoint

POST https://animica.dev/x402/random/commit

2

Calls / 30d

1

Unique payers / 30d

Aug 20

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://animica.dev/x402/random/commit", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "memo": "commit-reveal example"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://animica.dev/x402/random/commit" \
  -H "Content-Type: application/json" \
  -d '{"memo":"commit-reveal example"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Payment details

Pay to0x5d17c40fd6b119dc6006c4ab3c20a917fcab2acd
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, animica:1
Schemesexact

Is this your API?

Pin it to the top of Games & Fun and the homepage with a featured placement.

Get featured →

More from Animica & similar services