XChainSDKRC 0.1.2

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

// Install XChainSDKRC as a Cake Tool
#tool nuget:?package=XChainSDKRC&version=0.1.2                

XuperUnion C# SDK

This is a sample C# SDK for XuperUnion.

1. Features

Now only support the following operations:

  • Query Account Balance
  • Query TX
  • Transfer
  • Create Contract Account
  • Deploy WASM Contract
  • Invoke Contract
  • Query Block
  • Query Account's Contract
  • Query Address in which Contract Accounts

2. Requirements

This SDK is based on .Net Core 3.x, please make sure you've installed lastes .Net Core SDK on your environment.

Windows/Linux/MacOS are all supported, but only tested on MacOS 😃.

3. Usage

3.1 install

Install XChainSDK from dotnet cli:

dotnet add package XChainSDKRC

Or you can install from Visual Studio in the nuget package manager, find "XChainSDKRC" and install it.

3.2 play

Create a instance of XChainSDK.XChainClient.

The following code snippet initialize SDK client with a private key store at ./data/keys folder and the XuperUnion node's GRPC endpoint 127.0.0.1:37101.

var client = new XChainClient();
if (!client.Init("./data/keys", "127.0.0.1:37101"))
{
    Console.WriteLine("Create client failed");
    return;
}

Please make sure the GRPC endpoint is valid, otherwise exception would be throwed in runtime.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  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. 
.NET Core netcoreapp3.0 is compatible.  netcoreapp3.1 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.1.2 552 11/22/2019
0.1.1 475 11/22/2019
0.1.0 464 11/21/2019