{
  "x402Version": 2,
  "id": 7673,
  "slug": "7673",
  "resource": "https://api.solgiery.com/v1/random/choice",
  "description": "Uniformly select one original index and item from the input array. Equal values at different positions have separate chances. Uses the server OS CSPRNG. Returns consumed bytes for reproducible calculation, not proof of their origin. Price: 0.007 USDC per request, including the bounded batch.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x12fe99C184192A0d4a3C507602ad4b03AA3A6fbb",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "7000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "items": [
              "a",
              "b",
              "c"
            ]
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "algorithm": "solgiery-random-v1",
            "entropy": {
              "hex": "8080808080808080",
              "source": "os-csprng"
            },
            "result": {
              "index": 1,
              "item": "b"
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "description": "Unknown or duplicate parameters and null parameter values are rejected. JSON body: at most 65536 bytes, depth 16, and 4096 bytes per item. Repeated sample items together must fit 65536 bytes.",
                "properties": {
                  "items": {
                    "items": {},
                    "maxItems": 1000,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "additionalProperties": false,
                "properties": {
                  "algorithm": {
                    "const": "solgiery-random-v1",
                    "type": "string"
                  },
                  "entropy": {
                    "additionalProperties": false,
                    "properties": {
                      "hex": {
                        "maxLength": 262144,
                        "pattern": "^([0-9a-f]{2})*$",
                        "type": "string"
                      },
                      "source": {
                        "const": "os-csprng",
                        "type": "string"
                      }
                    },
                    "required": [
                      "source",
                      "hex"
                    ],
                    "type": "object"
                  },
                  "result": {
                    "additionalProperties": false,
                    "properties": {
                      "index": {
                        "maximum": 999,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "item": {}
                    },
                    "required": [
                      "index",
                      "item"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "algorithm",
                  "result",
                  "entropy"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.solgiery.com",
  "lastUpdated": "2026-09-13T16:47:04.155Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-13T16:47:03.955Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.solgiery.com",
    "manifest_name": "api.solgiery.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}