Use this after fair_commit, once every player has seen the server_seed_hash: give your…
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 c…
by web-production-220a3.up.railway.app · discovered, not yet claimed by its owner · updated 2026-09-28
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
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).
Tags: randomness · bazaar · eip2612GasSponsoring
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-09-28
{
"arguments": {
"client_seed": "agent-42",
"commitment_id": "6a1f0c3e9b7d2a5c8e4f1b0d",
"count": 5,
"max": 6,
"min": 1
}
}{
"ok": true,
"outil": "fair_draw",
"resultat": {
"algorithm": "swoge-hmac-sha256-v1",
"already_drawn": false,
"client_seed": "agent-42",
"commitment_id": "6a1f0c3e9b7d2a5c8e4f1b0d",
"committed_at": "2026-09-28T21:00:00.000Z",
"count": 5,
"drawn_at": "2026-09-28T21:02:00.000Z",
"max": 6,
"min": 1,
"numbers": [
3,
4,
3,
5,
3
],
"server_seed": "3f9a1c7e5b2d4086a1f3e5c7b9d0f2a4c6e8b1d3f5a7c9e0b2d4f6a8c0e2b4d6",
"server_seed_hash": "b85ef21a5deba1bcd033f7eb675b391cf40ce04d63d5e3da39ed9f61f27180b8",
"verify_code": "const c=require(\"crypto\");function draw(s,cs,n,min,max){...}"
},
"texte": "Draw: 3, 4, 3, 5, 3 in [1, 6]. server_seed 3f9a1c7e... (hash b85ef21a...), client_seed \"agent-42\"."
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/38625.jsonfor the price and payment options. - Pay. Call
GET https://web-production-220a3.up.railway.app/agentic/call/fair_draw. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Solana, eip155:4663, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.003 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Solana, eip155:4663
- Demand
- 1 calls · 1 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.003 | 0xE81C67c086c83997b41673e1e41e481c14D756F6 | 120s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.003 | CFg86EW2ZSAgGpf4o2XAt3gU59fgMfsuZyM6QDuDTmoM | 120s |
| exact | eip155:4663 eip155:4663 | 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 | 20000 | 0xE81C67c086c83997b41673e1e41e481c14D756F6 | 120s |
| exact | eip155:4663 eip155:4663 | 0x8a166Fb41Cd659a0a43396272FF73973Ce29F817 | 764955323713042389500 | 0xE81C67c086c83997b41673e1e41e481c14D756F6 | 120s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xE81C67c086c83997b41673e1e41e481c14D756F6",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "3000",
"amountUsd": 0.003,
"maxTimeoutSeconds": 120
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "CFg86EW2ZSAgGpf4o2XAt3gU59fgMfsuZyM6QDuDTmoM",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "3000",
"amountUsd": 0.003,
"maxTimeoutSeconds": 120
},
{
"scheme": "exact",
"network": "eip155:4663",
"payTo": "0xE81C67c086c83997b41673e1e41e481c14D756F6",
"asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
"amount": "20000",
"maxTimeoutSeconds": 120
},
{
"scheme": "exact",
"network": "eip155:4663",
"payTo": "0xE81C67c086c83997b41673e1e41e481c14D756F6",
"asset": "0x8a166Fb41Cd659a0a43396272FF73973Ce29F817",
"amount": "764955323713042389500",
"maxTimeoutSeconds": 120
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"ok": {
"const": true,
"type": "boolean"
},
"outil": {
"const": "fair_draw",
"type": "string"
},
"resultat": {
"properties": {
"algorithm": {
"type": "string"
},
"already_drawn": {
"type": "boolean"
},
"client_seed": {
"type": "string"
},
"commitment_id": {
"type": "string"
},
"committed_at": {
"type": "string"
},
"count": {
"type": "number"
},
"drawn_at": {
"type": "string"
},
"max": {
"type": "number"
},
"min": {
"type": "number"
},
"note": {
"type": [
"string",
"null"
]
},
"numbers": {
"items": {
"type": "number"
},
"type": "array"
},
"server_seed": {
"type": "string"
},
"server_seed_hash": {
"type": "string"
},
"verify_code": {
"type": "string"
}
},
"required": [
"commitment_id",
"algorithm",
"server_seed_hash",
"server_seed",
"client_seed",
"count",
"min",
"max",
"numbers",
"drawn_at",
"verify_code",
"already_drawn"
],
"type": "object"
},
"texte": {
"type": "string"
},
"x402": {
"properties": {
"amount": {
"type": "string"
},
"asset": {
"type": "string"
},
"network": {
"type": "string"
},
"transaction": {
"type": "string"
}
},
"required": [
"transaction",
"network",
"amount",
"asset"
],
"type": "object"
}
},
"required": [
"ok",
"outil"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"ok": true,
"outil": "string",
"resultat": {
"algorithm": "string",
"already_drawn": true,
"client_seed": "string",
"commitment_id": "string",
"committed_at": "string",
"count": 0,
"drawn_at": "string",
"max": 0,
"min": 0,
"note": "string",
"numbers": [
0
],
"server_seed": "string",
"server_seed_hash": "string",
"verify_code": "string"
},
"texte": "string",
"x402": {
"amount": "string",
"asset": "string",
"network": "string",
"transaction": "string"
}
},
"type": "string"
}Examples
curl "https://web-production-220a3.up.railway.app/agentic/call/fair_draw"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://web-production-220a3.up.railway.app/agentic/call/fair_draw");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://web-production-220a3.up.railway.app/agentic/call/fair_draw")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- web-production-220a3.up.railway.app
- Endpoint
- https://web-production-220a3.up.railway.app/agentic/call/fair_draw
- Machine-readable
/resources/38625.json