KursLabIgor / bitprim-cs

Bitprim C# API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bitprim C# binding

C# binding for the Bitprim API.

Our library is built with .Net Standard 2.0 and includes blockchain query interface.

NuGet Bitcoin Cash: NuGet

NuGet Bitcoin: NuGet

Travis: Build Status

Appveyor: Appveyor Status

Documentation

To view the full documentation, reference and tutorials please go to https://bitprim.github.io/docfx/content/developer_guide/dotnet/dotnet-Interface.html

Prerequisites

In case there are no pre-built binaries for your platform, conan will automatically try to build from source code. In such a scenario, the following requirements must be added to the previous ones:

  • C++11 Conforming Compiler.
  • CMake building tool, version 3.4 or newer.

Installation

You can install the Bitprim C# binding via Nuget.

There are two packages available:

For Bitcoin Cash (BCH) you need to use https://www.nuget.org/packages/bitprim-bch/ and for Bitcoin Legacy (BTC) you need to use https://www.nuget.org/packages/bitprim-btc/

If you use Visual Studio, you can use the UI or the Package Manager.

UI

  • Right click on your project
  • Select Manage Nuget Packages
  • Search for bitprim-bch or bitprim-btc
  • Click Install

Package Manager

* Open Package Manager 
* Run the following command
Install-Package bitprim-bch

or

Install-Package bitprim-btc

If you are using dotnet cli:

dotnet add package bitprim-bch

or

dotnet add package bitprim-btc

Building from source

If you want to build from source, you need the following prerequisites:

  • .Net Framework 4.6.1
  • .Net Core 2.0
  • Powershell (Windows only)

Run the following commands:

git clone https://github.com/bitprim/bitprim-cs.git
cd bitprim-cs

if you are on Windows, run:

powershell ./build.ps1

if you are in Linux or osx :

chmod +x build.sh
./build.sh

If you have problems running build.ps1 please check this link https://cakebuild.net/docs/tutorials/powershell-security

Examples

For a logging integration example see: Example

About

Bitprim C# API


Languages

Language:C# 97.8%Language:PowerShell 1.6%Language:Shell 0.7%