Introduction
The Ubu-Block REST API provides endpoints for submitting election results, querying blockchain data, and accessing regional information. All responses are returned in JSON format.Base URL
Authentication
Currently, the API does not require authentication for read operations. Write operations (submitting results) are validated through blockchain cryptographic signatures embedded in the block data.Response Format
All API responses return JSON data. Successful requests return a 200 status code with the requested data. Error responses include appropriate HTTP status codes.Example Response
Error Handling
The API returns standard HTTP status codes:200- Success400- Bad Request404- Not Found500- Internal Server Error
Rate Limiting
There are currently no rate limits enforced on the API.API Sections
Blocks
Query blockchain blocks and submit new results
Results
Access election results and candidate data
Regional Data
Query counties, constituencies, wards, and polling stations