MultiChainDotNet.Core 2.23.99-alpha-gb225fb0735

This is a prerelease version of MultiChainDotNet.Core.
There is a newer version of this package available.
See the version list below for details.
dotnet add package MultiChainDotNet.Core --version 2.23.99-alpha-gb225fb0735
                    
NuGet\Install-Package MultiChainDotNet.Core -Version 2.23.99-alpha-gb225fb0735
                    
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="MultiChainDotNet.Core" Version="2.23.99-alpha-gb225fb0735" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MultiChainDotNet.Core" Version="2.23.99-alpha-gb225fb0735" />
                    
Directory.Packages.props
<PackageReference Include="MultiChainDotNet.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MultiChainDotNet.Core --version 2.23.99-alpha-gb225fb0735
                    
#r "nuget: MultiChainDotNet.Core, 2.23.99-alpha-gb225fb0735"
                    
#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.
#:package MultiChainDotNet.Core@2.23.99-alpha-gb225fb0735
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MultiChainDotNet.Core&version=2.23.99-alpha-gb225fb0735&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MultiChainDotNet.Core&version=2.23.99-alpha-gb225fb0735&prerelease
                    
Install as a Cake Tool

MultiChainDotNet

Features

  • The build directory contains docker-compose script used to launch a 4-node multichain network on the development machine running WSL(Ubuntu).
  • The Core library contains the wrapper of MultiChain RPC API and included relevant strongly typed class for request and response.
  • The Fluent library is a fluent framework for constructing multichain raw transactions and signing transactions externally.
  • The Managers library is a high-level abstraction of the underlying classes designed for dependency injection.
  • The Console app is a command-line tool used for issuing calls via the MultiChainDotNet interface.
  • The libraries incorporated some enhancements using HttpClientFactory and Polly to manage the resiliency of calls.

Setup the blockchain network

1. Install Docker for Windows Desktop with WSL2

https://docs.docker.com/docker-for-windows/wsl/

2. Clone this repo

https://github.com/RoyLai-InfoCorp/MultiChainDotNet

3. Startup 1 seednode and 3 test nodes

Go to /build/multichain directory

sh$ ./multichain/create-base-image.sh
sh$ docker-compose up

The output should show Node ready. for all 4 nodes. If nodes doesn't start up, press CTRL-C, enter docker-compose down and try again.

4. Test the connection

Each node should be connected to 3 other nodes.

sh$ docker exec -it multichain-node1 multichain-cli sennet getpeerinfo
sh$ docker exec -it multichain-node2 multichain-cli sennet getpeerinfo
sh$ docker exec -it multichain-node3 multichain-cli sennet getpeerinfo

Compile and Test

  1. Install dotnet sdk

    https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu

    For ubuntu 20.04

    wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
    sudo dpkg -i packages-microsoft-prod.deb
    rm packages-microsoft-prod.deb
    sudo apt-get update; \
    sudo apt-get install -y apt-transport-https && \
    sudo apt-get update && \
    sudo apt-get install -y dotnet-sdk-5.0
    
  2. Go to /src directory

    sh$ dotnet build
    
  3. Go to /test directory

    sh$ dotnet test
    
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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on MultiChainDotNet.Core:

Package Downloads
MultiChainDotNet.Fluent

See README.md for more details

MultiChainDotNet.Managers

See README.md for more details

Chron.Ethereum

See README.md for more details

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.32.24-alpha 264 7/22/2022
2.32.23-alpha 222 7/21/2022
2.32.22-alpha 255 7/19/2022
2.32.21-alpha 288 5/5/2022
2.32.20 913 5/5/2022
2.32.20-alpha 240 4/24/2022
2.32.19 909 4/24/2022
2.32.19-alpha 427 3/17/2022
2.32.18 1,221 3/17/2022
2.32.18-alpha 279 3/17/2022
2.32.17-alpha 262 3/17/2022
2.32.16-alpha 258 3/11/2022
2.32.15-alpha 255 3/11/2022
2.32.14-alpha 242 3/6/2022
2.32.11-alpha 202 3/6/2022
2.32.10-alpha 188 3/6/2022
2.32.9 1,251 2/5/2022
2.32.8 881 1/29/2022
2.32.1 853 1/29/2022
2.32.0 789 1/29/2022
2.31.0 845 1/28/2022
2.30.0 797 1/16/2022
2.29.0 501 12/16/2021
2.28.0 498 12/16/2021
2.27.0 608 12/13/2021
2.26.0 500 12/7/2021
2.25.9 485 12/5/2021
2.25.8 488 12/5/2021
2.25.4 502 12/5/2021
2.25.3 486 12/5/2021
2.25.2 482 12/4/2021
2.25.0-g8447d8d263 318 8/20/2021
2.24.0-gaca33099d2 300 8/4/2021
2.23.99-alpha-gb225fb0735 311 8/3/2021
2.23.99-alpha-g80c40d2b5f 255 8/3/2021