Published 28 June 2019

Examples: C#: Boilerplate



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");




            // place your code here

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



Votes 0, average rating 0