Skip to content

Third Party Library for implementing Credits Blockchain in .NET

License

Notifications You must be signed in to change notification settings

akaitrade/Centre.NetCS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Centre.NetCS

Icon Centre.NetCS

Third Party Library for implementing Credits Blockchain in .NET

Installation of NuGet

https://www.nuget.org/packages/Centr.NetCS

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

Detailed Documentation

For All Centre build Libraries there is detailed documentation which can be found here: https://centr.gitbook.io/netcs

Testing

Tested for Xamarin and normal console applications

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 !

About

Third Party Library for implementing Credits Blockchain in .NET

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages