{"id":16441513,"url":"https://github.com/mostafatech/myawesomeblockchain","last_synced_at":"2026-06-09T22:31:46.612Z","repository":{"id":77829817,"uuid":"258611640","full_name":"MostafaTech/MyAwesomeBlockchain","owner":"MostafaTech","description":"This is a simple implemention of a blockchain with python","archived":false,"fork":false,"pushed_at":"2020-05-01T08:57:25.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T21:02:06.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/MostafaTech.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}},"created_at":"2020-04-24T20:01:39.000Z","updated_at":"2024-05-28T08:32:52.000Z","dependencies_parsed_at":"2023-02-23T21:00:23.223Z","dependency_job_id":null,"html_url":"https://github.com/MostafaTech/MyAwesomeBlockchain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostafaTech%2FMyAwesomeBlockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostafaTech%2FMyAwesomeBlockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostafaTech%2FMyAwesomeBlockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostafaTech%2FMyAwesomeBlockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MostafaTech","download_url":"https://codeload.github.com/MostafaTech/MyAwesomeBlockchain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240777555,"owners_count":19855856,"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","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":[],"created_at":"2024-10-11T09:14:42.250Z","updated_at":"2026-06-09T22:31:46.596Z","avatar_url":"https://github.com/MostafaTech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyAwesomeBlockchain\nThis is a simple implemention of a blockchain with python\n\n### Use the program\n\nTo start a server node\n```sh\n$ python ./node.py \u003cnode_id\u003e\n----------------------------\n\n$ python ./node.py 1\n * Serving Flask app \"node\" (lazy loading)\n * Environment: production\n   WARNING: This is a development server. Do not use it in a production deployment.\n   Use a production WSGI server instead.\n * Debug mode: off\n * Running on http://0.0.0.0:5001/ (Press CTRL+C to quit)\n```\n\nCreate wallets (create at least 3 wallets for sender, recipient and miner)\n```sh\n$ python ./client.py init\nwallet created: 33ea7a7c-5f20-4ebd-9d62-313a0e298836\n\n$ python ./client.py init\nwallet created: 7cfc3ceb-78df-4898-b327-cc3abfae1c50\n\n$ python ./client.py init\nwallet created: 3cc8aa7a-2370-4c84-bdfa-d22cda041403\n```\n\ntransfer some money (at least two transfers to create one block)\n```sh\n$ python ./client.py transfer \u003csender_wallet\u003e \u003crecipient_wallet\u003e \u003camount\u003e\n---------------------------------------------\n\n$ python ./client.py transfer 33ea7a7c-5f20-4ebd-9d62-313a0e298836 7cfc3ceb-78df-4898-b327-cc3abfae1c50 100\ninitiating transfer...\ntransfer finished sucessfully\n\n$ python ./client.py transfer 33ea7a7c-5f20-4ebd-9d62-313a0e298836 7cfc3ceb-78df-4898-b327-cc3abfae1c50 200\ninitiating transfer...\ntransfer finished sucessfully\n```\n\nto see blocks send a GET request same as below\n```json\nGET 127.0.0.1:5001/blocks\n-------------------------\n\n[\n    {\n        \"id\": \"6b44a4c1-669a-42ed-a30d-8d107a4a3885\",\n        \"timestamp\": 1587756259.944004,\n        \"transactions\": [\n            {\n                \"amount\": \"100\",\n                \"recipient\": \"7cfc3ceb-78df-4898-b327-cc3abfae1c50\",\n                \"sender\": \"33ea7a7c-5f20-4ebd-9d62-313a0e298836\"\n            },\n            {\n                \"amount\": \"200\",\n                \"recipient\": \"7cfc3ceb-78df-4898-b327-cc3abfae1c50\",\n                \"sender\": \"33ea7a7c-5f20-4ebd-9d62-313a0e298836\"\n            }\n        ]\n    }\n]\n```\n\nLet's mine the blocks\n```sh\n$ python ./miner.py \u003cminer_wallet\u003e --node=\u003cnode_id\u003e\n--------------------------------------------\n\n$ python ./miner.py 3cc8aa7a-2370-4c84-bdfa-d22cda041403 --node=1\nselected block to mine: 6b44a4c1-669a-42ed-a30d-8d107a4a3885\nblock mined with proof = 35416\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmostafatech%2Fmyawesomeblockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmostafatech%2Fmyawesomeblockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmostafatech%2Fmyawesomeblockchain/lists"}