Soren · Draw

by Soren

GETBasebase

$0.05

per call · USD Coin on Base

A selection nobody can rig, including us. Seeded by the drand League of Entropy beacon: a distributed network emits one signed value every 30 seconds and no participant, Soren included, can choose or predict it. Returns the winners, the round, and the exact derivation so anyone can recompute the result. Name a FUTURE round with round= to remove even the assumption that we did not wait for a beacon we liked.

Endpoint

GET https://soren.com/v1/draw

1

Calls / 30d

1

Unique payers / 30d

Aug 26

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://soren.com/v1/draw", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://soren.com/v1/draw?n=100&pick=3&round=4210000" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "beacon": {
    "randomness": "<64 hex>",
    "round": "<int>"
  },
  "drawn": true,
  "n": "<int>",
  "pick": "<int>",
  "signature": {
    "algorithm": "Ed25519",
    "value": "<base64>"
  },
  "winners": [
    "<int>"
  ]
}

Payment details

Pay to0xadc3a47efbd82ed724a0e9a3d08d5a1a8e6586fd
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, base
Schemesexact

Is this your API?

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

Get featured →

More from Soren & similar services