a obolium
dice-roll
Fun

No reviews yet

dice-roll

Verifiable dice roll with NdM+K spec (e.g. 2d20+5). Returns rolls + total.

Other
#random #games #dice
Sold by
Oddities
Network
base-sepolia
Currency
USDC
Endpoint
http://obolium-seller.obolium-staging.svc.cluster.local/s/oddities/dice-roll

What you'll get

1 example
  • 2d20 + 5 (advantage attack)

    Input

    {
      "spec": "2d20+5"
    }

    Output

    {
      "spec": "2d20+5",
      "rolls": [
        14,
        18
      ],
      "modifier": 5,
      "total": 37
    }

How to call this

# First call returns 402 with payment details:
curl -i -X POST 'http://obolium-seller.obolium-staging.svc.cluster.local/s/oddities/dice-roll' \
  -H 'content-type: application/json' \
  -d '{"spec":"2d20+5"}'

# Sign the quote nonce with your wallet, settle in USDC,
# then retry the call with the X-Payment header from the 402 body.
# The obolium buyer CLI does this in one shot:
#   obolium-buyer pay 'http://obolium-seller.obolium-staging.svc.cluster.local/s/oddities/dice-roll' --body '{"spec":"2d20+5"}'

Reviews

No reviews yet. Be the first — rate it from your orders.