{"id":19571593,"url":"https://github.com/block-core/blockcore-template","last_synced_at":"2025-09-04T15:34:20.477Z","repository":{"id":37970409,"uuid":"247259652","full_name":"block-core/blockcore-template","owner":"block-core","description":"Template project used to start a new Blockcore based chain from \"dotnet new blockcorecoin\" command.","archived":false,"fork":false,"pushed_at":"2024-02-23T13:23:26.000Z","size":112,"stargazers_count":4,"open_issues_count":4,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-14T18:48:25.950Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","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/block-core.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}},"created_at":"2020-03-14T10:58:50.000Z","updated_at":"2024-08-12T19:58:47.000Z","dependencies_parsed_at":"2024-04-13T21:45:08.297Z","dependency_job_id":"c89043b9-3381-40e7-bf5f-8df85bea1d11","html_url":"https://github.com/block-core/blockcore-template","commit_stats":{"total_commits":51,"total_committers":9,"mean_commits":5.666666666666667,"dds":"0.33333333333333337","last_synced_commit":"b63c7d3aaf705522a44765fb86b90b76256e761a"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/block-core/blockcore-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block-core%2Fblockcore-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block-core%2Fblockcore-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block-core%2Fblockcore-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block-core%2Fblockcore-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/block-core","download_url":"https://codeload.github.com/block-core/blockcore-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/block-core%2Fblockcore-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273631556,"owners_count":25140627,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"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":[],"created_at":"2024-11-11T06:19:24.047Z","updated_at":"2025-09-04T15:34:20.397Z","avatar_url":"https://github.com/block-core.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/5221349/72841405-93c2ce80-3c96-11ea-844b-3e1ff782b1ae.png\" height=\"100\" alt=\"Blockcore\" /\u003e\n  \u003c/p\u003e\n  \u003ch3 align=\"center\"\u003e\n    Blockcore Samples and Templates\n  \u003c/h3\u003e\n  \u003cp align=\"center\"\u003e\n      \u003ca href=\"https://github.com/block-core/blockcore-samples/actions\"\u003e\u003cimg src=\"https://github.com/block-core/blockcore-samples/workflows/Build/badge.svg\" /\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n# Create your own Blockchain\n\nThe right place to get started, is this repository: https://github.com/block-core/blockcore-node\n\n## Introduction to our \"dotnet new\" template\n\nThis repository contains samples for building new blockchain applications and coins using the Blockcore platform. \n\nThe samples can be copied directly or if you prefer you can install the Blockcore template and use `dotnet new` to create a new blockchain based on the sample. Using the template will substitute in the name of your blockchain and coin ticker.\n\n## Template Usage\n\n1) Install the template from nuget\n```\ndotnet new -i Blockcore.Coin.Template\n```\n\n2) Create a directory for your coin\n```\nmkdir mynewcoin\ncd mynewcoin\n```\n\n3) Create your coin\n```\ndotnet new blockcorecoin --coinTicker MNC .....\n```\n\nThere are many parameters you need to specify, so find examples here:\n\n[https://github.com/block-core/blockcore-nodes/tree/master/scripts](https://github.com/block-core/blockcore-nodes/tree/master/scripts)\n\n4) Find all the \"TODO\" comments in the code for things that needs to be replaced before you can start you blockchain.\n\n### Tasks\n\n- [ ] Add unit tests to template\n- [ ] Parameterize ports\n- [ ] Parameterize magic number\n- [ ] Parameterize pszTimestamp\n- [ ] Optional features\n\n### Template Development\n\nInstall locally can be done by navigating into the \"Blockcore.SampleCoin\" sub-folder and running the following command:\n```\ndotnet new -i .\n```\n\nThen you can create a new project like instructed above.\n\nAlso consider using the \"-o\" (--output) switch to easier quickly generate many instances for testing:\n\n```\ndotnet new blockcorecoin -c BTC -o CoinOne\n```\n\n### Linux\n\nTo use the sample coin template on Linux, first install the .NET Core SDK:\n\n```\nsudo snap install dotnet-sdk --classic\nsudo snap alias dotnet-sdk.dotnet dotnet\n```\n\nThen clone the repository to a folder:\n\n```\ngit clone https://github.com/block-core/blockcore-samples.git\n```\n\nNavigate into correct folder and install the template:\n```\n# Navigate to sample code\n\ncd blockcore-samples\ncd Blockcore.SampleCoin\n\n# Install the sample code as a \"dotnet new\" template\ndotnet new -i .\n```\n\nNavigate to your blockchain folder where you want to generate code:\n\n```\ndotnet new blockcorecoin --output MyCoin\ncd MyCoin\n```\n\nEdit your code, with Visual Studio Code or another editor.\n\nNow run and test your custom blockchain:\n\n```\ncd src\ncd MyCoin.Node\ndotnet run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblock-core%2Fblockcore-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblock-core%2Fblockcore-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblock-core%2Fblockcore-template/lists"}