{"id":19423211,"url":"https://github.com/make-software/casper-net-sdk","last_synced_at":"2025-04-10T00:19:49.957Z","repository":{"id":42009799,"uuid":"415772728","full_name":"make-software/casper-net-sdk","owner":"make-software","description":".NET SDK to interact with the Casper Network nodes via RPC","archived":false,"fork":false,"pushed_at":"2025-03-27T11:32:22.000Z","size":1668,"stargazers_count":13,"open_issues_count":4,"forks_count":14,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-27T11:45:38.574Z","etag":null,"topics":["blockchain","casper-network","dotnet","sdk"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/make-software.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-11T04:00:58.000Z","updated_at":"2025-03-27T11:31:21.000Z","dependencies_parsed_at":"2024-02-15T22:25:32.005Z","dependency_job_id":"9e348c18-2db2-42a1-b949-c5b388f13700","html_url":"https://github.com/make-software/casper-net-sdk","commit_stats":{"total_commits":158,"total_committers":5,"mean_commits":31.6,"dds":"0.20253164556962022","last_synced_commit":"f9f44974bf32c1b6f12d335cc3583005b3fd419f"},"previous_names":["davidatwhiletrue/netcaspersdk"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-software%2Fcasper-net-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-software%2Fcasper-net-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-software%2Fcasper-net-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-software%2Fcasper-net-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/make-software","download_url":"https://codeload.github.com/make-software/casper-net-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131653,"owners_count":21052891,"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","casper-network","dotnet","sdk"],"created_at":"2024-11-10T13:37:14.427Z","updated_at":"2025-04-10T00:19:49.929Z","avatar_url":"https://github.com/make-software.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Casper .NET SDK\n\n[![GitHub version](https://badge.fury.io/gh/make-software%2Fcasper-net-sdk.svg)](https://badge.fury.io/gh/make-software%2Fcasper-net-sdk)  [![NuGet version](https://badge.fury.io/nu/casper.network.sdk.svg)](https://badge.fury.io/nu/casper.network.sdk)\n\n![build-and-test workflow](https://github.com/make-software/casper-net-sdk/actions/workflows/build-and-test.yml/badge.svg)\n\nThe Casper .NET SDK allows developers to interact with the Casper Network using the .NET languages. The project itself is being developed with C#.\n\n## Documentation\n\nThe SDK documentation, examples and tutorials can be found [here](https://make-software.github.io/casper-net-sdk/).\n\n## Get started\n\nThe Casper.Network.SDK for .NET is published as a nuget package in [nuget.org](https://www.nuget.org/packages/Casper.Network.SDK).\n\nTo add a reference to the SDK in your project, use the Package Manager in Visual Studio or the `dotnet` cli tool.\n\n### Package Manager (Windows)\n```\nInstall-Package Casper.Network.SDK\n``` \n\n### dotnet cli tool (Windows/Mac/Linux)\n```\ndotnet add package Casper.Network.SDK\n``` \n\n## Run a Casper node locally with NCTL\n\n[NCTL](https://github.com/casper-network/casper-node/tree/release-1.4.3/utils/nctl) is a CLI application to control one or multiple Casper networks locally. Many developers wish to spin up relatively small test networks to localize their testing before deploying to the blockchain.\n\nTo simplify even more the set up of a local network, you may run NCTL within a docker container. To start a container and publish the ports of one the nodes, write the following command:\n\n```bash\ndocker run --rm -it --name mynctl -d -p 11101:11101 -p 14101:14101 -p 18101:18101 makesoftware/casper-nctl\n```\n\nRefer to the [`casper-nctl-docker`](https://github.com/make-software/casper-nctl-docker/) repository for further details on how to use NCTL with docker.\n\n## Build/Test instructions\n\nTo build this library, install .NET 5.0 or higher and build with command:\n\n```\ndotnet build --configuration Release\n```\n\nTo run the tests, use this command:\n\n```\ndotnet test --filter 'TestCategory!~NCTL'\n```\n\nOn Windows use a PowerShell terminal to run the tests.\n\nTo test against `netstandard2.0` framework, launch the tests as follows:\n\n```\nTEST_FRAMEWORK=netstandard2.0 dotnet test --filter 'TestCategory!~NCTL'\n```\n\n### Integration tests\n\nThe command above excludes integration tests. If you're running a Casper network locally with NCTL, follow these steps to run the integrations tests:\n\n1. Copy the faucet key from your NCTL environment to `Casper.Network.SDK.Test/TestData/faucetact.pem`. If you're running the NCTL docker image, activate nctl commands and run `nctl-view-faucet-secret-key \u003e Casper.Network.SDK.Test/TestData/faucetact.pem`.\n\n2. Adjust, if needed, the IPs and ports in the file `Casper.Network.SDK.Test/TestData/test.runsettings`.\n\n3. Run the tests:\n\n```\ndotnet test --settings Casper.Network.SDK.Test/test.runsettings --filter 'TestCategory~NCTL'\n```\n\nNOTE: Make sure your NCTL network has booted up and nodes are emitting blocks before running the tests.\n\nTo test against `netstandard2.0` framework, launch the tests as follows:\n\n```\nTEST_FRAMEWORK=netstandard2.0 dotnet test --settings Casper.Network.SDK.Test/test.runsettings --filter 'TestCategory~NCTL'\n```\n\n## Create a workspace in Gitpod\n\nClick the button to start coding in Gitpod with an online IDE.\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/make-software/casper-net-sdk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmake-software%2Fcasper-net-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmake-software%2Fcasper-net-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmake-software%2Fcasper-net-sdk/lists"}