{"id":28465259,"url":"https://github.com/jsarenik/halving","last_synced_at":"2026-04-25T11:34:27.081Z","repository":{"id":52583987,"uuid":"357877342","full_name":"jsarenik/halving","owner":"jsarenik","description":"Understanding Bitcoin Halving","archived":false,"fork":false,"pushed_at":"2024-11-22T10:55:30.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T19:50:26.689Z","etag":null,"topics":["bitcoin","halving","script","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/jsarenik.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}},"created_at":"2021-04-14T11:17:20.000Z","updated_at":"2024-11-17T13:02:20.000Z","dependencies_parsed_at":"2025-06-30T19:43:08.959Z","dependency_job_id":null,"html_url":"https://github.com/jsarenik/halving","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jsarenik/halving","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsarenik%2Fhalving","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsarenik%2Fhalving/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsarenik%2Fhalving/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsarenik%2Fhalving/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsarenik","download_url":"https://codeload.github.com/jsarenik/halving/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsarenik%2Fhalving/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32261116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","halving","script","shell"],"created_at":"2025-06-07T05:11:07.138Z","updated_at":"2026-04-25T11:34:27.064Z","avatar_url":"https://github.com/jsarenik.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Understanding Bitcoin Halving\n\nThe POSIX shell script `halving.sh` contains all the logic\nneeded to compute Bitcoin halving data in following format\nper line:\n\n    \u003cblock\u003e \u003csubsidy\u003e \u003cyear\u003e\n\nFor example:\n\n    5670000         37 2116\n\nRead it like this: From block `5670000` the subsidy will be `37` satoshi\nand it should happen approximately in year `2116`.\n\nThe `sum-sats.sh` and `sum-total.sh` scripts process the output of\n`halving.sh`.\n\nExamples:\n\n    $ ./sum-sats.sh\n    2099999997690000\n    $ ./sum-total.sh \n    99.99999989%\n\nSo eventually there will be almost 21 million bitcoin.\nOne bitcoin is one hundred million satoshi.\n\n1 BTC = 100 000 000 sat\n\nNot a single satoshi will ever disappear\\*. The transaction\nfees are mined by the miners and recycled this way. When\nthe subsidy will be 0, the miners will get _only_ the fees\npaid by Bitcoin users in the transactions (a.k.a. reward).\n\n\\* There is actually a possibility that the miner\nwill not issue a coinbase transaction or will ask for less\nthan what they could (see first link in the end).\nAnd there is a possibility the coins are burned in\na provable way using `OP_RETURN`.\n\n\n## Links\n\n * https://en.bitcoin.it/wiki/Controlled_supply\n * https://blog.amberdata.io/why-the-bitcoin-supply-will-never-reach-21-million\n * https://medium.com/amberdata/why-the-bitcoin-supply-will-never-reach-21-million-7263e322de1\n * https://www.makeuseof.com/bitcoin-remove-21-million-coin-limit/\n * https://finematics.com/bitcoin-halving-explained-code-analysis/\n * https://bitcoinik.com/bitcoin-halving-code-explained/\n * [listedreserve article](https://www.listedreserve.com/education/transactions-and-the-bitcoin-money-supply/)\n * https://savingsatoshi.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsarenik%2Fhalving","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsarenik%2Fhalving","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsarenik%2Fhalving/lists"}