Published 28 June 2019

Examples: C#: Boilerplate

Project:

https://github.com/CREDITSCOM/examples.git

Branch:

https://github.com/CREDITSCOM/examples/tree/master/API/CreditsCSharpDemo

To further demonstrate the use of the Credits API, create a template.

using Chaos.NaCl;

using NodeApi;

using System;

using System.Collections.Generic;

using System.Diagnostics;

using System.IO;

using Thrift.Protocol;

using Thrift.Transport;

using SauceControl.Blake2Fast;

using System.Text;

namespace CreditsCSAPIDemo

{

    class Program

   {    

            Console.WriteLine("Credits API Simple Demo");

            if(args.Length != 4)

            {           

                Console.WriteLine("Usage: CreditsCSAPIDemo NodeIpAddress YourPublicKey YourPrivateKey TargetPublicKey");

                return;

           }

 

            // place your code here

            Console.WriteLine("Press [Enter] to exit...");

            Console.ReadLine();

}

Votes 0, average rating 0

Contents