Skip to content
Fourohtwo

web-production-220a3.up.railway.app/agentic/call/fair_draw

Use this after fair_commit, once every player has seen the server_seed_hash: give your client_seed and get uniform random integers in [min, max]. 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).

BaseAnswering
POSThttps://web-production-220a3.up.railway.app/agentic/call/fair_draw

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://web-production-220a3.up.railway.app/agentic/call/fair_draw", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"arguments":{"max":6,"min":1,"count":5,"client_seed":"agent-42","commitment_id":"6a1f0c3e9b7d2a5c8e4f1b0d"}}),
});
console.log(await res.json());

Example input

{
  "arguments": {
    "max": 6,
    "min": 1,
    "count": 5,
    "client_seed": "agent-42",
    "commitment_id": "6a1f0c3e9b7d2a5c8e4f1b0d"
  }
}

More from SwogeAgentic