Api Endpoint

SwogeAgentic

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).

Open interactive test console

Offering

Provider
web-production-220a3.up.railway.app
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Blockchain And Crypto
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://web-production-220a3.up.railway.app/agentic/call/fair_draw
MIME type
Not provided
First seen
2026-10-16T01:51:51.176Z
Last seen
Tags
randomness

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.003 USDC
Atomic price: 3000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.003 USDC
Atomic price: 3000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Payment option 3
0.02 USDC
Atomic price: 20000 · Network: eip155:4663 · Asset: USDC · Scheme: exact
Payment option 4
764955323713042389500 atomic units
Atomic price: 764955323713042389500 · Network: eip155:4663 · Asset: 0x8a166Fb41Cd659a0a43396272FF73973Ce29F817 · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000",
    "payTo": "0xE81C67c086c83997b41673e1e41e481c14D756F6"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "3000",
    "payTo": "CFg86EW2ZSAgGpf4o2XAt3gU59fgMfsuZyM6QDuDTmoM"
  },
  {
    "scheme": "exact",
    "network": "eip155:4663",
    "asset": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
    "amount": "20000",
    "payTo": "0xE81C67c086c83997b41673e1e41e481c14D756F6"
  },
  {
    "scheme": "exact",
    "network": "eip155:4663",
    "asset": "0x8a166Fb41Cd659a0a43396272FF73973Ce29F817",
    "amount": "764955323713042389500",
    "payTo": "0xE81C67c086c83997b41673e1e41e481c14D756F6"
  }
]

Observed health

Status
Healthy
Latest latency
101 ms
Average latency
203 ms
HTTP status
204
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "body": {
    "arguments": {
      "client_seed": "agent-42",
      "commitment_id": "6a1f0c3e9b7d2a5c8e4f1b0d",
      "count": 5,
      "max": 6,
      "min": 1
    }
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "properties": {
            "arguments": {
              "properties": {
                "client_seed": {
                  "type": "string"
                },
                "commitment_id": {
                  "type": "string"
                },
                "count": {
                  "maximum": 100,
                  "minimum": 1,
                  "type": "integer"
                },
                "max": {
                  "type": "integer"
                },
                "min": {
                  "type": "integer"
                }
              },
              "required": [
                "commitment_id",
                "client_seed"
              ],
              "type": "object"
            }
          },
          "required": [
            "arguments"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "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"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}