81trust / 100
Call Fair Commit
by SwogeAgentic in Onchain & crypto
x402 APIPassing, checked 9 min ago
Use this before any draw other players must trust (a game between agents, a raffle, a giveaway): the server picks a secret seed and publishes its SHA-256 hash now, so it cannot change the seed later. Price: $0.003 in USDC on Base or Solana, or $0.02 in USDG or $SWOGE on Robinhood Chain (tool price + settlement cost, minimum $0.02).
POST https://web-production-220a3.up.railway.app/agentic/call/fair_commit
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 182 ms typical, 182 ms slowest 5%
- Last check
- 9 min ago
- Next check
- in 18 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://web-production-220a3.up.railway.app/agentic/call/fair_commit" \
-H "content-type: application/json" \
-d '{"arguments":{}}'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%2Fweb-production-220a3.up.railway.app%2Fagentic%2Fcall%2Ffair_commit
const res = await pay("https://web-production-220a3.up.railway.app/agentic/call/fair_commit", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"arguments":{}}),
});
console.log(await res.json());Example input
{
"arguments": {}
}Example output
{
"ok": true,
"outil": "fair_commit",
"resultat": {
"algorithm": "swoge-hmac-sha256-v1",
"commitment_id": "6a1f0c3e9b7d2a5c8e4f1b0d",
"committed_at": "2026-09-28T21:00:00.000Z",
"expires_at": "2026-10-05T21:00:00.000Z",
"next": "Share server_seed_hash with the other players now. Then call fair_draw with this commitment_id and your client_seed: the server reveals its seed and draws once.",
"server_seed_hash": "b85ef21a5deba1bcd033f7eb675b391cf40ce04d63d5e3da39ed9f61f27180b8"
},
"texte": "Commitment 6a1f0c3e9b7d2a5c8e4f1b0d: server_seed_hash b85ef21a5deba1bc... (swoge-hmac-sha256-v1)..."
}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 |
|---|---|---|---|---|
| 9 min ago | Passed | 402 | 661 ms | $0.003 |
| 5 h ago | Passed | 402 | 182 ms | $0.003 |