FactomSharp 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package FactomSharp --version 0.1.0                
NuGet\Install-Package FactomSharp -Version 0.1.0                
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="FactomSharp" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FactomSharp --version 0.1.0                
#r "nuget: FactomSharp, 0.1.0"                
#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 FactomSharp as a Cake Addin
#addin nuget:?package=FactomSharp&version=0.1.0

// Install FactomSharp as a Cake Tool
#tool nuget:?package=FactomSharp&version=0.1.0                

FactomSharp .NET Factom node API

A .net implementation of the Factom API written in C#.

Supports:
  • factomd API V2
  • factom-walletd API V2
Depends on:
  • Newtonsoft.json
  • RestSharp
  • dlech.Chaos.NaCL
Features:
  • Provides all API functions. Native Json-like classes & helper methods.
  • Multi-node support, for automatic fallback.
  • Asyncronious Helper classes:
    • Chain class
      • Open/Create chain
      • Read/Write entries
      • IEnumerable entry lists
      • Track commit status, with callbacks.
    • FCT/EC class.
      • Track status, with callbacks. (TODO)
      • Track Balances (TODO)
  • HTTP, HTTPS, Proxy support (uses RestSharp)
  • NuGet for easy installation

To create a chain, and add some entries:
var factomd = new FactomdRestClient("https://api.mynode.com:8088"); 
var myEcAddress = "EC3PV61FYYEQFKwwCVEZj9m5Ge9TrPhE9A2N7pA9YPNM7PXNfuCh";
var myEsAddress = "Es4Mn6eW8AGtNhH1YSGepbBofFzfJnq3RLFtCZ93kZ14VwGaeQHq";

var address = new Helper.ECAddress(factomd,myEsAddress,myEcAddress);
var chain = new Helper.Chain(address);

chain.ChainStatusChange += (o,a) => {
  Console.WriteLine($"ChainStatusChange: {a.ToString()}");
};
        
chain.QueueItemStatusChange += (o,a) => {
  var item = (EntryItem)o;
  Console.WriteLine($"EntryStatusChange {a.ToString()} {item?.ApiError?.error}");
};

chain.Create(Encoding.ASCII.GetBytes("This is my new chain"));

for (int i =1; i< 10;i++)
{
    var text = $"This is a test - hello! {i}";
    Console.WriteLine($"Writing: {text}");
    var entry = chain.AddEntry(Encoding.ASCII.GetBytes(text));
}
Multiple nodes:

Use a comma separated list of URLs: https://api.mynode1.com:8088;https://api.mynode2.com:8088;https://api.mynode3.com:8088; If a node fails to reply, or timeouts, the next node in the list is selected.

Product Compatible and additional computed target framework versions.
.NET Framework net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 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.9.0 684 4/8/2019
0.8.0 539 4/8/2019
0.7.0 589 4/7/2019
0.6.0 570 4/5/2019
0.5.0 598 4/4/2019
0.4.0 721 10/30/2018
0.3.0 682 10/30/2018
0.2.0 713 10/29/2018
0.1.0 691 10/29/2018