Club Ranked Choice Tally
Replay single-winner ranked ballots round by round and report exhausted ballots or an elimination tie.
Custom requests cost 0.04 USDC on Base.
Download example JSON · OpenAPI · Source and usage
Pay with a browser wallet · Open example in checkout
POST a JSON request to /club-ranked-choice-tally/v1/check with an x402 V2 client.
Worked example
Request
{
"candidates": [
"A",
"B",
"C"
],
"ballots": [
{
"ranks": [
"A"
],
"count": 4
},
{
"ranks": [
"B"
],
"count": 3
},
{
"ranks": [
"C",
"B"
],
"count": 2
}
]
}Result
{
"status": "winner",
"winner": "B",
"rounds": [
{
"counts": [
{
"candidate": "A",
"votes": 4
},
{
"candidate": "B",
"votes": 3
},
{
"candidate": "C",
"votes": 2
}
],
"exhausted": 0,
"eliminated": "C"
},
{
"counts": [
{
"candidate": "A",
"votes": 4
},
{
"candidate": "B",
"votes": 5
}
],
"exhausted": 0,
"eliminated": null
}
]
}Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter