BetTip Fair Draw API
Pick winners from a list or a number range with a draw bound to a future round of the drand public randomness beacon. Nothing is stored: a draw description…
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Pick winners from a list or a number range with a draw bound to a future round of the drand public randomness beacon. Nothing is stored: a draw description always gives the same winners. Specification: https://github.com/bettip-co-za/fair-draw/blob/main/spec/FAIR-DRAW-v1.md
Endpoints 4
- GETCurrent and next beacon round, and the round for a given time
/round - POSTDescribe a draw and bind it to a round
/commit - POSTDraw the winners once the round has landed
/draw - POSTRe-check a proof
/verify
API details
- Base URL
https://bettip.co.za/api/v1/fair-draw- Authentication
- None declared in the description
- Operations
- 4 operations on 4 pathsPOST 3GET 1
- Response formats
application/json- Description format
- OpenAPI 3.1.0, API version
1.0.0 - Links
- OpenAPI document · Support
- Listed from
- Bettip's published OpenAPI description
How to test the BetTip Fair Draw API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the BetTip Fair Draw API collection, without the publisher's secrets.
- Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
- Send a requestPick an endpoint, for example “Current and next beacon round, and the round for a given time” (GET /round), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the BetTip Fair Draw API?
Pick winners from a list or a number range with a draw bound to a future round of the drand public randomness beacon. Nothing is stored: a draw description… It is listed under Developer tools and has 4 endpoints.
Who publishes the BetTip Fair Draw API?
It is listed from BetTip's public API description (an OpenAPI document), not published by BetTip on Swastik Codes. Anyone who controls bettip.co.za can claim the profile by adding a DNS TXT record.
What is the base URL of the BetTip Fair Draw API?
Requests go to https://bettip.co.za/api/v1/fair-draw. Endpoint paths are added to this base URL.
How do I authenticate with the BetTip Fair Draw API?
Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.
How many endpoints does the BetTip Fair Draw API have?
4 operations on 4 paths (3 POST, 1 GET).
Is forking the BetTip Fair Draw API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.