Call this endpoint to read the current election results after the counting phase has run. The response contains the total number of valid votes processed and a per-candidate breakdown of counts and percentages. Only votes with aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Crypto-Project-ENSTA/back-end/llms.txt
Use this file to discover all available pages before exploring further.
valid status are included — votes rejected due to an invalid signature or invalid N2 fingerprint are never counted. Results are populated by POST /voting/end-vote; the endpoint returns an empty tally until counting has occurred.
Request
GET /results/tally
This endpoint takes no request body and no query parameters.
Response
The total number of valid votes counted across all candidates.
A list of per-candidate result objects. Empty when no valid votes have been counted yet.
HTTP status codes
| Code | Meaning |
|---|---|
200 | Tally returned successfully. The tally array may be empty if no valid votes have been counted yet. |
500 | Internal server error while retrieving results. |
Response examples
Results are populated when
POST /voting/end-vote is called. Once the election is closed and votes are counted, the tally is stable and read-only.