starless-sky-dotnet-sdk 1.0.0

dotnet add package starless-sky-dotnet-sdk --version 1.0.0
NuGet\Install-Package starless-sky-dotnet-sdk -Version 1.0.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="starless-sky-dotnet-sdk" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add starless-sky-dotnet-sdk --version 1.0.0
#r "nuget: starless-sky-dotnet-sdk, 1.0.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 starless-sky-dotnet-sdk as a Cake Addin
#addin nuget:?package=starless-sky-dotnet-sdk&version=1.0.0

// Install starless-sky-dotnet-sdk as a Cake Tool
#tool nuget:?package=starless-sky-dotnet-sdk&version=1.0.0

Starless Sky .NET SDK

The Starless Sky .NET SDK allows easy communication with Starless Sky networks without having to write a lot of API-integration code. We primarily chose .NET because it is widely supported by the developer community and it is cross-platform.

To start developing with the .NET SDK, install Visual Studio (recommended) or Visual Studio Code. You can download them here.

The .NET SDK is not included in the Visual Studio Code installation. You can download .NET here.

Currently the project is targeting .NET 5 and .NET 6. Both of this versions are supported by the library.

Installation

The repository is not available in the nuget manager (yet) but you can clone the latest stable version of the SDK and reference it in your project.

After cloning and refering it on your project, you will have access to StarlessSky.Core classes.

using System;
using StarlessSky.Core.API;
using StarlessSky.Core.Module;
using StarlessSky.Core.Entity;

var networkAddress = new Uri("https://localhost:8080/");
var networkInstance = new StarlessSkyNetworkInstance(networkAddress);

// Send a message
string privateKeyFrom = "xxxxxxx";
string publicKeyTo = "0xabc123456";

MessageProvider msgProvider = new MessageProvider(networkInstance);
MessageBody msgContent = new MessageBody(content: "Hello, world!", subject: "Open this");
var result = msgProvider.SendMessage(privateKeyFrom, publicKeyTo, msgContent);

if(result.Success) {
    Console.WriteLine("Message sent!");
}
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows 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
1.0.0 447 2/1/2022

Alpha