InputPOST /api/v1/x402/random-choice
{
"items": [
"a",
"b",
"c"
],
"count": 2
}
Web and API intelligence · utility
Pick random items without replacement for $0.001 USDC. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.
One-command purchase
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/random-choice -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"items":["a","b","c"],"count":2}'
{
"items": [
"a",
"b",
"c"
],
"count": 2
}
{
"tool_name": "util_random_choice",
"result": {
"schema": "delx/random-choice/v1",
"count": 2,
"choices": [
"b",
"c"
],
"note": "CSPRNG without replacement when count > 1."
}
}
Example computed locally; this is not a paid delivery receipt.
Machine-readable evidence