{"id":20959196,"url":"https://github.com/sanketplus/iamcoin","last_synced_at":"2025-06-12T17:35:04.165Z","repository":{"id":94553060,"uuid":"126862493","full_name":"sanketplus/iamcoin","owner":"sanketplus","description":"Simple Blockchain implementation in Python. For fun and no profit. ","archived":false,"fork":false,"pushed_at":"2018-04-08T13:01:17.000Z","size":88,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T14:11:16.311Z","etag":null,"topics":["blockchain","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sanketplus.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":"2018-03-26T17:09:44.000Z","updated_at":"2023-03-04T11:08:39.000Z","dependencies_parsed_at":"2023-07-02T04:30:59.949Z","dependency_job_id":null,"html_url":"https://github.com/sanketplus/iamcoin","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/sanketplus%2Fiamcoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanketplus%2Fiamcoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanketplus%2Fiamcoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sanketplus%2Fiamcoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sanketplus","download_url":"https://codeload.github.com/sanketplus/iamcoin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254084753,"owners_count":22011939,"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":["blockchain","python"],"created_at":"2024-11-19T01:52:10.099Z","updated_at":"2025-06-12T17:35:04.157Z","avatar_url":"https://github.com/sanketplus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IAMCOIN :D\n\nThe coin wanted to call itself `iamcoin` :D\n\nCore component used here is `aiohttp` which provides HTTP api and WebSocket P2P connectivity. A block is mined every 10 minutes or when there are 10 transaction in pool (configurable). Reward for mining block is 100 coins.\n\n#### Start Node\n```bash\npython3 run.py\n```\n\n## HTTP API\n\n**Add peer**\n```bash\ncurl localhost:5000/addpeer -X POST --data \"peer=http://example.com:5000/ws\"\n```\n\n**Get block count**\n```bash\ncurl localhost:5000/blockcount\n```\n\n**List Peers**\n```bash\ncurl localhost:5000/peers \n```\n\n**List Transactions in Transaction pool**\n```bash\ncurl localhost:5000/txpool\n```\n\n**Get Balance**\n```bash\ncurl localhost:5000/balance \n```\n\n**Send transaction in Transaction pool*\n```bash\ncurl localhost:5000/sendtransaction --data '{\"address\":\"8007305ba6672e4ce558d7502c904bce9b3a8263f2a66e3a79d6877b2c52c8a848601a43bd3f884b1b209cd3ca124daa\",\"amount\":30}' \n```\n\n**mine block which will include all tx from pool**\n```bash\ncurl localhost:5000/mineblock -X POST\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanketplus%2Fiamcoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanketplus%2Fiamcoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanketplus%2Fiamcoin/lists"}