Chia-Client-API 1.8.1.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package Chia-Client-API --version 1.8.1.8
NuGet\Install-Package Chia-Client-API -Version 1.8.1.8
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="Chia-Client-API" Version="1.8.1.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Chia-Client-API --version 1.8.1.8
#r "nuget: Chia-Client-API, 1.8.1.8"
#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 Chia-Client-API as a Cake Addin
#addin nuget:?package=Chia-Client-API&version=1.8.1.8

// Install Chia-Client-API as a Cake Tool
#tool nuget:?package=Chia-Client-API&version=1.8.1.8

Chia-Client-API

Thank you for considering using the Chia Client API for C#! Here is a brief overview of what you can expect to find in this repository:

Description

This repository contains a C# wrapper for the Chia blockchain API. It allows you to easily interact with the Chia blockchain from your C# applications.

This library is also available on NuGet. You can find it by searching for "ChiaClientAPI" in the NuGet Package Manager or by using the following command in the Package Manager Console:

Install-Package Chia-Client-API

Features

A simple, easy-to-use interface for accessing the Chia API Support for all API endpoints, including those for managing accounts, sending and receiving transactions, and querying the blockchain Detailed documentation for each API endpoint, including descriptions of input and output parameters

Requirements

.NET 6 or higher

Installation

To install this library from the repository, simply clone the repository and open the solution file in Visual Studio. You can then build the solution and reference the compiled library in your own C# projects.

Alternatively, you can install the library from NuGet as described above.

Usage

Note: Per default, chia rpc will only listen to requests from the local machine.
If you have remote machines to manage, eg a full node or farmers, you need to enable public port listening.
For that, edit the chia configuration (default at ~/.chia/mainnet/config/config.yaml).
Look for a line starting with self-hostname like so: self_hostname: &self_hostname "localhost"
change it to: self_hostname: 0.0.0.0 to listen on all interfaces or to the local interface ip to listen on a specific interface.

To use the Chia Client API in your C# applications, you will need to create an instance of the ChiaClient class and pass in your API key:

using ChiaClientAPI;
var client = new ChiaClient("your_api_key");

You can then call any of the API endpoints by calling the corresponding method on the client object. For example, to get the balance of an account, you can use the GetBalance method:

var balance = client.GetBalance("your_account_id");
Console.WriteLine(balance);

Refer to the documentation for specific usage instructions for each API endpoint.

Contributing

We welcome contributions to this repository! If you have suggestions for improvements or new features, please open an issue or submit a pull request.

License

This library is licensed under the MIT License. Please see the LICENSE file for more information.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 is compatible.  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
2.2.0.17 97 3/13/2024
2.2.0.14 88 3/5/2024
2.2.0 84 3/1/2024
2.1.3 163 12/21/2023
2.1.1.10 123 12/8/2023
2.1.1.9 122 11/26/2023
2.1.1.8 107 11/15/2023
2.1.1.7 87 11/15/2023
2.1.1.6 94 11/9/2023
2.1.1.4 110 10/20/2023
2.1.1 113 10/13/2023
2.0.1 111 10/5/2023
2.0.0.1 127 8/31/2023
2.0.0 121 8/28/2023
1.8.2.13 129 8/22/2023
1.8.2.12 102 8/22/2023
1.8.2.5 150 8/10/2023
1.8.2.4 127 8/9/2023
1.8.2.3 140 8/9/2023
1.8.2.2 122 8/9/2023
1.8.2.1 123 8/9/2023
1.8.2 129 7/26/2023
1.8.1.16 113 6/26/2023
1.8.1.15 127 6/23/2023
1.8.1.14 113 6/22/2023
1.8.1.13 105 6/22/2023
1.8.1.12 109 6/22/2023
1.8.1.11 112 6/22/2023
1.8.1.10 114 6/22/2023
1.8.1.9 125 6/21/2023
1.8.1.8 139 6/14/2023
1.8.1.7 120 6/14/2023
1.8.1.6 146 6/12/2023
1.8.1.5 139 6/9/2023
1.8.1.4 126 6/9/2023
1.8.1.3 135 6/9/2023
1.8.1.2 144 6/7/2023
1.8.1.1 124 6/7/2023
1.8.1 132 6/2/2023
1.8.0 144 5/11/2023
1.7.1 153 4/21/2023
1.6.2.14 254 2/8/2023
1.6.2.13 232 2/8/2023
1.6.2.12 243 2/5/2023
1.6.2.10 263 1/31/2023
1.6.2.9 240 1/31/2023
1.6.2.8 259 1/28/2023
1.6.2.7 272 1/26/2023
1.6.2.6 276 1/25/2023
1.6.2.5 265 1/24/2023
1.6.2.4 262 1/17/2023
1.6.2.3 266 1/16/2023
1.6.2.2 271 1/15/2023
1.6.2.1 272 1/13/2023
1.6.2 287 1/12/2023
1.6.1.6 274 1/11/2023
1.6.1.5 273 1/11/2023
1.6.1.4 273 1/11/2023
1.6.1.3 287 1/10/2023
1.6.1.1 277 12/29/2022
1.6.1 276 12/29/2022

1.8.1.8: hotfix
- hotfix for 1.8.1.7 null reference issue

1.8.1.7: Allow decimal
- this is a rather big update which adds decimal properties to many endpoints. these decimal properties allow to read/write amounts in xch rather than having to manually do dhe conversion to mojos

1.8.1.6: improve Transaction and response classes:
- added functionality to obtain primary coin from transaction (please test this!!!)
- reworket objects and code to include the raw request answer data

1.8.1.5: improve wait for transaction code:
- renamed wallet api to confirm
- created full node api to wait for coin creation (this should really await transaction completeness)
- added an implecet conversion for the checkers
- added timespan code for the awaital

1.8.1.4: improve SendTransaction_RPC
- added a global variable in General_NS.GlobalVar which specifies the amount of mojos which make up one chia
- improved constructor of SendTransaction_RPC to allow for diferent combinations of ulong (mojos) and double (xch) for amount and fee

1.8.1.3: Improve Constructor for SendTransaction_RPC
- now has default null values which can be left blank

1.8.1.2: Improvements to GetFeeEstimate
- minor documentation typo fix
- fix either/or condition in a class
- major improvement for get fee estimates constructor now properly reflecting either spend or cost condition and adding standard chia transaction value hence making `GetStandardTransactionFeeEstimate` obsolete.
- added property to `GetFeeEstimate_Response` which displays fee in full chia fraction rather than in Mojos.

1.8.1.1: The updates are mostly in Chia-RPC. This update ensures the compatibility to Chia-RPC 1.8.1.1 and brings the following improvements:

- major documentation update
- added constructors to all rpc endpoints
- a few minor bogfixes
- added further implicit conversions