{"id":31626457,"url":"https://github.com/4g0r4/giveaway","last_synced_at":"2025-10-06T19:52:26.716Z","repository":{"id":314725321,"uuid":"1056536355","full_name":"4G0R4/giveaway","owner":"4G0R4","description":"SN Giveaways' winner picker at specific block heigh","archived":false,"fork":false,"pushed_at":"2025-09-27T18:19:24.000Z","size":155,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-27T20:31:58.169Z","etag":null,"topics":["bitcoin","blockheight","giveaway","picker","raffle","winner","winners"],"latest_commit_sha":null,"homepage":"https://4G0R4.github.io/giveaway/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/4G0R4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-14T09:56:25.000Z","updated_at":"2025-09-27T18:19:27.000Z","dependencies_parsed_at":"2025-09-14T12:18:33.245Z","dependency_job_id":"4fdd1422-2213-4954-88e7-90bffca5ec1a","html_url":"https://github.com/4G0R4/giveaway","commit_stats":null,"previous_names":["4g0r4/giveaway"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/4G0R4/giveaway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4G0R4%2Fgiveaway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4G0R4%2Fgiveaway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4G0R4%2Fgiveaway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4G0R4%2Fgiveaway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4G0R4","download_url":"https://codeload.github.com/4G0R4/giveaway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4G0R4%2Fgiveaway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278671749,"owners_count":26025743,"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-10-06T02:00:05.630Z","response_time":65,"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","blockheight","giveaway","picker","raffle","winner","winners"],"created_at":"2025-10-06T19:52:24.948Z","updated_at":"2025-10-06T19:52:26.707Z","avatar_url":"https://github.com/4G0R4.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://github.com/4G0R4/giveaway/blob/main/sn-logo.png)\n# Giveaway Picker\n\n## Provably fair bitcoin giveaway picker\n\nA simple tool to give more transparency and credibility to bitcoin giveaways, raffles, tombolas, draws, and similar. It will simply help you randomly pick winners fairly. \n\n## How to use\n1. Bulk register unlimited participants (one per line)\n2. Randomly pick number of winners (max 210)\n3. Select future block number for the draw to be executed\n4. Get a sharable link to share results with all participants\n5. Have results easily verified, simply hit “Submit” to start the verification\n6. Save and share the results in a unique URL\n\nRepo: https://github.com/4G0R4/giveaway/\n\nDemo: https://4G0R4.github.io/giveaway/\n\nTry:\n- Go to [this link](https://4g0r4.github.io/giveaway?U2FsdGVkX1+ylI2QBalBrjRbaEEXRJ9aM7AHGQ4JCOmpzBNk3Ltz/qHpfbBeIoO6WhLhcTtjeiR6SG7gO19UO4I/YJ1DyNs8vTjSFG4zU7msOKjK6t6jihpH/47wbBo+ZRDwZsg59rThVNa+K9Ew9G8Dhi6c7Kh4Y/w0ToaJHdGou7wqbx0DVtQqMY2pFiZT+7RpUkpS0FuwS6r4PFb5ET/cGjjERVZbJPkzCOrK14pk3JVBtF/wUtq4dXLGbi8dab7sQZ5uIzVcf3m6KpaXCPeWouUwWw4DbPAKLx9Di1MWbd7UX0F05/jxzl+dW7XKH5SMQS6HPesVUUzDxGzfqNCSvtSHPNtxFmb4i40R77f7L21vIrLe5LL9LEp4wiDwoK7n/N94yF/fhUAb5xEFp3iBY7N1/8ec13bpkX+RvEgrrgKJx/K21ZW1yIyeEhPnyGy1Ai0k5TGS713b/1CHRzgpSfXQyXaJkT5ZW5I6wjdjrRLa6i73DVz5ZQJlg5yHolRmEFZxXsGH0uBNoWUktQUqwzrAdFK4lYTKvqhA7j9uVKoaXdOOTy/UX8j7iX6ASxh/JzYN67ha11ZFhKieKQ==)\n- Click **Submit** button\n- View who are the 3 picked random stackers from today [top](https://stacker.news/top/stackers/custom?from=1757769019072\u0026to=1757855419072) \u003csub\u003eexcluding hiding stacker\u003c/sub\u003e\n\n## How it works\n\n\nAs the `blockhash` is just a number, its last 6 digits is converted to `decimal` using this function:\n\n```\nvar decimal = parseInt(blockhash.slice(-6), 16);\n```\n\nNow we have an integer (0 to 16777215) from the `blockhash`.\n\nAfter dividing this `decimal` by the number of participants, we use the modulo operator (`%`) to get the division remainder becomes the `index_number`.\n\nThis `index_number` is applied in the participants' list, to get the position of the winner.\n\n```\nvar index_number = decimal % participants.length;\nvar winner = participants[index_number];\n```\n\nFor additional winners, the past winners are removed from the list and one more digit is added from the `blockhash`. A maximum 210 was added to avoid working with big numbers.\n\n- - - \n\n`if` you find this tool useful, refer to it in your upcoming giveaways and raffles, or zap some sats via \u003ca href=\"https://coinos.io/pay/AGORA\" target=\"_blank\"\u003elightning\u003c/a\u003e or onchain `bc1qwcyfx0mfgxxuuf6yf2f04egjhh2xcgw8t2egf0`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4g0r4%2Fgiveaway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4g0r4%2Fgiveaway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4g0r4%2Fgiveaway/lists"}