{"id":18438472,"url":"https://github.com/democracyearth/micropayment-voting","last_synced_at":"2025-09-14T03:05:16.323Z","repository":{"id":68833409,"uuid":"62258945","full_name":"DemocracyEarth/micropayment-voting","owner":"DemocracyEarth","description":"🦅 Vote as bitcoin micropayment.","archived":false,"fork":false,"pushed_at":"2022-05-31T15:50:13.000Z","size":13,"stargazers_count":14,"open_issues_count":3,"forks_count":6,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-07T21:40:50.882Z","etag":null,"topics":["bitcoin","blockchain","micropayments","vote"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DemocracyEarth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-29T21:25:16.000Z","updated_at":"2022-12-31T08:39:06.000Z","dependencies_parsed_at":"2023-03-13T20:27:10.814Z","dependency_job_id":null,"html_url":"https://github.com/DemocracyEarth/micropayment-voting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DemocracyEarth/micropayment-voting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DemocracyEarth%2Fmicropayment-voting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DemocracyEarth%2Fmicropayment-voting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DemocracyEarth%2Fmicropayment-voting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DemocracyEarth%2Fmicropayment-voting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DemocracyEarth","download_url":"https://codeload.github.com/DemocracyEarth/micropayment-voting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DemocracyEarth%2Fmicropayment-voting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275055088,"owners_count":25397576,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","blockchain","micropayments","vote"],"created_at":"2024-11-06T06:19:58.061Z","updated_at":"2025-09-14T03:05:16.314Z","avatar_url":"https://github.com/DemocracyEarth.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 21API\n\nPython API able to get chains from web-app database and automatically\nwrites/secure them on the bitcoin blockchain via 21 micropayment services.\n\n## API Endpoints\n\n\nWeb browser \u003c--\u003e Front-end \u003c--\u003e **api.py \u003c--\u003e connector.py**\n\n### api.py\nRESTful service for vote saving. This module only receives and transmits\ninformation to the connector.py script and to the front-end instances.\n\nResource | HTTP Method | URL and arguments | Returns\n----|-----|----- |-----|\nVote saving | POST | \u003chost:port\u003e/send-vote?proposal=yes/no | JSON object with confirmation, vote and the wallet's address that stores our votes\nVote status | GET | \u003chost:port\u003e/vote-count | Total number of votes on each option for the proposal\n\n\n\n### connector.py\n21.co server for operations over micropayments (One satoshi per operation). This\nconnector provides information for the api.py module and manages the operations\nfor Blockchain events\n\nResource | HTTP Method | URL and arguments | Returns\n----|-----|-----|-----|\nVote accounting to the Blockchain | POST |  \u003chost:port\u003e/write-vote?proposal=yes/no | Wallet address\nVotes on each proposal | GET | \u003chost:port\u003e/count | Total votes for the proposal\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemocracyearth%2Fmicropayment-voting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemocracyearth%2Fmicropayment-voting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemocracyearth%2Fmicropayment-voting/lists"}