{"id":16353382,"url":"https://github.com/hoakbuilds/gophercoin","last_synced_at":"2025-10-26T02:31:56.826Z","repository":{"id":53613979,"uuid":"185096154","full_name":"hoakbuilds/gophercoin","owner":"hoakbuilds","description":"A simple cryptocurrency implementation with a RESTful API, p2p communication and a mining server","archived":false,"fork":false,"pushed_at":"2023-02-25T03:17:24.000Z","size":3293,"stargazers_count":3,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T14:16:09.778Z","etag":null,"topics":["blockchain","cryptocurrency","peer-to-peer","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Go","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/hoakbuilds.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}},"created_at":"2019-05-06T00:04:08.000Z","updated_at":"2024-08-12T19:48:37.000Z","dependencies_parsed_at":"2024-01-14T08:07:12.124Z","dependency_job_id":null,"html_url":"https://github.com/hoakbuilds/gophercoin","commit_stats":null,"previous_names":["hoakbuilds/gophercoin","murlokito/gophercoin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoakbuilds%2Fgophercoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoakbuilds%2Fgophercoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoakbuilds%2Fgophercoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoakbuilds%2Fgophercoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoakbuilds","download_url":"https://codeload.github.com/hoakbuilds/gophercoin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238248003,"owners_count":19440879,"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","cryptocurrency","peer-to-peer","rest-api"],"created_at":"2024-10-11T01:29:29.768Z","updated_at":"2025-10-26T02:31:51.515Z","avatar_url":"https://github.com/hoakbuilds.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# gophercoin\n\nA simple cryptocurrency and blockchain implementation\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for various purposererequisites\n\nIn order to be able to install and run the application you will need the following programs in your machine.\n\n```\ngo version \u003e= go1.12.1\n\nnpm\n```\n\n### Installing\n\nYou can install the app by running the following command in the root folder of the project.\n\n```\nmake install\n```\n\n### Running\n\nConsidering you installed the app by running the previous step\n\n```\n#The following command will launch the app regularly\ngcd\n\n#The following command will launch the app with the REST API\n# on port 9050\ngcd -rest 9050\n\n# The following command will launch the app with the REST API\n# on port 9050 and with the blockchain.db file in the current directory as database\ngcd -rest 9050 -db blockchain.db\n\n```\n\n\n\n\n\n### Testing\n\nWriting the command `gcd -h` will print out a more detailed explanation of how the input flags work.\n```\nUsage of gcd:\n  -addr string\n    \tAddress used for mining reward.\n  -db string\n    \tPath to the blockchain.db file.\n  -listen string\n    \tPort for the daemon to use to listen for peer connections\n  -mining true\n    \tSet to true to mine, `false` not to.\n  -rest string\n    \tPort to use for the REST API server.\n  -wallet string\n    \tPath to the wallet.dat file.\n\n```\nConsidering you have an instance with the REST API running\n\n```\n#The following command will create a wallet\ncurl -H \"Content-Type: application/json\" -X POST http://127.0.0.1:9050/create_wallet     \n\n#The following command will create the blockchain\ncurl -H \"Content-Type: application/json\" -X POST http://127.0.0.1:9050/create_blockchain    \n\n```\n\n## API Endpoints\n\n\nThe following API endpoints are exposed when the daemon is executed with the REST flag\n```\n\t\n    \"GET\",\n    \"/\",\n\n    \"GET\",\n    \"/new_address\",\n\t\n    \"POST\",\n    \"/create_wallet\",\n\n    \"POST\",\n    \"/create_blockchain\",\n\n    \"GET\",\n    \"/get_balance/{Address}\",\n\n    \"GET\",\n    \"/list_addresses\",\n\t\n    \"GET\",\n    \"/list_mempool\",\n\t\n    \"GET\",\n    \"/list_blocks\",\n\t\n    \"GET\",\n    \"/node_info\",\n\t\n    \"POST\",\n    \"/submit_tx/{From}/{To}/{Amount}\",\n\t\n    \"POST\",\n    \"/add_node/{Address}\",\n\n```\n## Built With\n\n* [golang](https://golang.org) - The programming language\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoakbuilds%2Fgophercoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoakbuilds%2Fgophercoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoakbuilds%2Fgophercoin/lists"}