Centr.NetCS 0.2.0.1-Beta

This is a prerelease version of Centr.NetCS.
dotnet add package Centr.NetCS --version 0.2.0.1-Beta
NuGet\Install-Package Centr.NetCS -Version 0.2.0.1-Beta
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Centr.NetCS" Version="0.2.0.1-Beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Centr.NetCS --version 0.2.0.1-Beta
#r "nuget: Centr.NetCS, 0.2.0.1-Beta"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Centr.NetCS as a Cake Addin
#addin nuget:?package=Centr.NetCS&version=0.2.0.1-Beta&prerelease

// Install Centr.NetCS as a Cake Tool
#tool nuget:?package=Centr.NetCS&version=0.2.0.1-Beta&prerelease

Centre.NetCS

Icon Centre.NetCS

Third Party Library for implementing Credits Blockchain in .NET

Installation of NuGet

pm> Install-Package Centr.CSNet -Version 1.0.0

Getting started

After installing it's time to actually use it. To get started we have to add the NetCS namespace: using NetCS;.

Centre is providing an easy way of connecting to the Credits Blockchain where the goal is to limit the time needed for new Developers intergrating the Credits Blockchain into there projects

Connector Object

In order to get the library working we first need to initialize the Connector object

var connect_ = new NetCS.Connector("95.111.224.219", 9091);

The Connector object needs to have 2 variables the first: IP address of a node running Credits Blockchain and Second: the API port of that particular node.

Examples

Retrieving Balance

For a very easy example we are going to retrieve a Balance of a give wallet address

var connect_ = new Connector("95.111.224.219", 9091);
var balance = connect_.balance("4SFfA1S2xfA3BdgkTn2tK14yDhLuD11RVz78kqx35jct");

With only 2 Lines of code we can now retrieve a balance from the blockchain that easy !

Sending Transaction

In the next example we are going to send an transaction with the native currency CS

var connect_ = new Connector("95.111.224.219", 9091);
Console.WriteLine(connect_.SendTransaction(1, 0, "Enter Sender Publickey", "Enter Sender Privatekey", "Enter Receiver Publickey"));

Well look at that ! You now sended an transaction on the Credits Blockchain great job 😉

Contribution

Everyone is free to help me out as this will be a community driven Library !

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.0.1-Beta 165 8/12/2021
0.1.0.24-Beta 162 8/8/2021
0.1.0.7-Beta 175 8/6/2021