C# binding for the Bitprim API.
Our library is built with .Net Standard 2.0 and includes blockchain query interface.
To view the full documentation, reference and tutorials please go to https://bitprim.github.io/docfx/content/developer_guide/dotnet/dotnet-Interface.html
- 64-bit machine.
- Conan package manager, version 1.1.0 or newer. See Conan Installation.
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.
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.
- Right click on your project
- Select Manage Nuget Packages
- Search for bitprim-bch or bitprim-btc
- Click Install
* 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
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
For a logging integration example see: Example