FactomSharp 0.1.0
There is a newer version of this package available.
See the version list below for details.
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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)
- Chain class
- 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 | Versions 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.
-
.NETFramework 4.6
- dlech.Chaos.NaCl (>= 0.1.0)
- Newtonsoft.Json (>= 11.0.2)
- RestSharp (>= 106.5.4)
- System.IO (>= 4.3.0)
- System.Runtime (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.