{"slug":"api-solgiery-com-v1-random-weighted-cc7fb7","title":"Select one original index and item with probability weight divided by total weig","host":"api.solgiery.com","method":"POST","resource":"https://api.solgiery.com/v1/random/weighted","category":"market","description":"Select one original index and item with probability weight divided by total weight. Weights must match items and be integers from 0 to 1000000000; at least one must be positive. Uses the server OS CSPRNG. Returns consumed bytes for reproducible calculation, not proof of their origin. Price: 0.007 US","price_listed":0.007,"price_asked":0.007,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":882,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"items":["a","b","c"],"weights":[1,2,0]},"bodyType":"json","method":"POST","type":"http"},"output_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"},"weights":{"items":{"maximum":1000000000,"minimum":0,"type":"integer"},"maxItems":1000,"minItems":1,"type":"array"}},"required":["items","weights"],"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"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.007,"price_match":true,"latency_ms":882,"error":null}],"description_full":"Select one original index and item with probability weight divided by total weight. Weights must match items and be integers from 0 to 1000000000; at least one must be positive. 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.","last_updated":"2026-09-13T16:47:01.162Z","schemes":["exact"]}