{"id":21102940,"url":"https://github.com/planetarium/planet-node","last_synced_at":"2025-05-16T18:34:53.417Z","repository":{"id":47844091,"uuid":"483906642","full_name":"planetarium/planet-node","owner":"planetarium","description":"A simple node implementation using Libplanet","archived":false,"fork":false,"pushed_at":"2022-12-07T11:18:58.000Z","size":77,"stargazers_count":7,"open_issues_count":5,"forks_count":12,"subscribers_count":7,"default_branch":"main","last_synced_at":"2023-04-10T01:58:21.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/planetarium.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}},"created_at":"2022-04-21T04:35:39.000Z","updated_at":"2023-01-28T01:16:07.000Z","dependencies_parsed_at":"2023-01-23T17:15:24.587Z","dependency_job_id":null,"html_url":"https://github.com/planetarium/planet-node","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/planetarium%2Fplanet-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/planetarium%2Fplanet-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/planetarium%2Fplanet-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/planetarium%2Fplanet-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/planetarium","download_url":"https://codeload.github.com/planetarium/planet-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225444610,"owners_count":17475354,"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-11-19T23:57:13.490Z","updated_at":"2024-11-19T23:57:13.993Z","avatar_url":"https://github.com/planetarium.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"planet-node\n===========\n\nplanet-node is a [.NET] CLI application as example for [Libplanet].\nThis application was developed as an example of blockchain node configuration using Libplanet, and is not suitable for production environment operation.\n\n[Libplanet]: https://libplanet.io\n[.NET]: https://docs.microsoft.com/en-US/dotnet/\n\nPrerequisites\n-------------\n\nYou need to install [.NET SDK] 6+. Read and follow the instruction to install\n .NET SDK on the [.NET download page][1].\n\n[.NET SDK]: https://docs.microsoft.com/en-US/dotnet/core/sdk\n[1]: https://dotnet.microsoft.com/en-us/download\n\n\nBuild\n-----\n\n```bash\n$ git submodule update --init --recursive\n$ dotnet build\n```\n\nIf you want build docker, You can create a standalone image by running the command below.\n```bash\n$ docker build . -t \u003cIMAGE_TAG\u003e\n```\n\nHow to Run\n----------\n\n```bash\n$ dotnet run --project PlanetNode\n```\n\n### About configuration\nCurrently, planet-node produces and uses storage and settings via\n`appsettings.json` and `PN_` prefixed environment variables. if you want to\nchange settings, please edit that files or set environment variables.\n\nIn sh/bash/zsh (Linux or macOS):\n\n```sh\n$ PN_StorePath=\"/tmp/planet-node\" dotnet run --project PlanetNode\n```\n\nOr PowerShell (Windows):\n\n```pwsh\nPS \u003e $Env:PN_StorePath=\"/tmp/planet-node\"; dotnet run --project PlanetNode\n```\n\n### GraphQL\nplanet-node runs [GraphQL] server and [GraphQL Playground] automatically.\n(backed by [GraphQL.NET]) you can check the current chain status on playground. (default endpoint is http://localhost:38080/ui/playground)\n\nThe following query is a GraphQL query that returns the last 10 blocks and\ntransactions.\n\n```graphql\nquery\n{\n  explorer\n  {\n    blockQuery\n    {\n      blocks (limit: 10 desc: true)\n      {\n        index\n        hash\n        timestamp\n\n        transactions\n        {\n          id\n          actions\n          {\n            inspection\n          }\n        }\n      }\n    }\n  }\n}\n```\n\u003cimg width=\"919\" alt=\"image\" src=\"https://user-images.githubusercontent.com/128436/166613127-de83fd1d-7087-477e-9636-259aaa71f360.png\"\u003e\n\nAlso, you can find supported GraphQL query in playground as like bellow.\n\n\u003cimg width=\"478\" alt=\"image\" src=\"https://user-images.githubusercontent.com/128436/165906186-fc361126-f8f8-456a-bd28-fca938e60be1.png\"\u003e\n\nSee the [Libplanet.Explorer] project for more details.\nAlso, if you want to try scenario based tutorial, please check the `TUTORIAL.md`.\n\nPublish\n-------\n\nIf you want to pack this project, use [`dotnet publish`][dotnet publish] as below.\n\n```bash\n$ dotnet publish -c Release --self-contained -r linux-x64\n$ ls -al PlanetNode/bin/Release/net6.0/linux-x64/publish/\n```\n\n[dotnet publish]: https://docs.microsoft.com/en-US/dotnet/core/tools/dotnet-publish\n\n[GraphQL]: https://graphql.org/\n[GraphQL Playground]: https://github.com/graphql/graphql-playground\n[GraphQL.NET]: https://graphql-dotnet.github.io/\n[Libplanet.Explorer]: https://github.com/planetarium/libplanet/tree/main/Libplanet.Explorer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplanetarium%2Fplanet-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplanetarium%2Fplanet-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplanetarium%2Fplanet-node/lists"}