{"id":50619773,"url":"https://github.com/microsoft/pxt-radio-blockchain","last_synced_at":"2026-06-06T10:01:06.390Z","repository":{"id":65976085,"uuid":"123310214","full_name":"microsoft/pxt-radio-blockchain","owner":"microsoft","description":"A toy blockchain for the micro:bit radio and MakeCode","archived":false,"fork":false,"pushed_at":"2023-06-05T17:35:02.000Z","size":26,"stargazers_count":32,"open_issues_count":1,"forks_count":16,"subscribers_count":9,"default_branch":"master","last_synced_at":"2026-05-25T10:38:58.648Z","etag":null,"topics":["makecode"],"latest_commit_sha":null,"homepage":"https://makecode.microbit.org/pkg/microsoft/pxt-radio-blockchain","language":"TypeScript","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/microsoft.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":"SECURITY.md","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":"2018-02-28T16:17:51.000Z","updated_at":"2026-04-10T16:10:54.000Z","dependencies_parsed_at":"2023-02-19T18:31:07.335Z","dependency_job_id":null,"html_url":"https://github.com/microsoft/pxt-radio-blockchain","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/microsoft/pxt-radio-blockchain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-radio-blockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-radio-blockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-radio-blockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-radio-blockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/pxt-radio-blockchain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-radio-blockchain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33975471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"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":["makecode"],"created_at":"2026-06-06T10:01:05.294Z","updated_at":"2026-06-06T10:01:06.379Z","avatar_url":"https://github.com/microsoft.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# radio-blockchain\n\nA toy blockchain over radio\n\n## ~ hint\n\nThis is blockchain implementation is for educational purposes only.\n\n## ~\n\n## Usage\n\nThe library starts as soon as the @boardname@ starts.\nIt uses the radio.\n\n### Add a block #radioblockchainaddblock\n\nThe ```addBlock``` adds a block in the blockchain and broadcast its to peers.\n\n```sig\nblockchain.addBlock(0)\n```\n\n### Read the values #radioblockchainvalues\n\nUse the ``values`` block to get an array of number\nof the values stored in the chain, minus the genesis block.\n\n```sig\nblockchain.values()\n```\n\n### Filtering values by @boardname@ #radioblockvaluesfrom\n\nYou can also get the values contributed by a particular\n@boardname@ using ``valuesFrom``. The ``id`` block gives your @boardname@ id.\n\n```sig\nblockchain.valuesFrom(blockchain.id())\n```\n\n## Events #radioblockchainonevent\n\nEvents are raised when the chain is updated (when you received a new chain) or broadcasted.\n\n```sig\nblockchain.onEvent(BlockChainEvent.Update, () =\u003e {})\n```\n\n## License\n\nMIT\n\n## Supported targets\n\n* for PXT/microbit\n(The metadata above is needed for package search.)\n\n## References\n\n* https://medium.com/@lhartikk/a-blockchain-in-200-lines-of-code-963cc1cc0e54\n* https://medium.com/crypto-currently/lets-build-the-tiniest-blockchain-e70965a248b\n* https://medium.com/@micheledaliessi/how-does-the-blockchain-work-98c8cd01d2ae\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fpxt-radio-blockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fpxt-radio-blockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fpxt-radio-blockchain/lists"}