CHIA-RPC
1.6.2.5
See the version list below for details.
dotnet add package CHIA-RPC --version 1.6.2.5
NuGet\Install-Package CHIA-RPC -Version 1.6.2.5
<PackageReference Include="CHIA-RPC" Version="1.6.2.5" />
paket add CHIA-RPC --version 1.6.2.5
#r "nuget: CHIA-RPC, 1.6.2.5"
// Install CHIA-RPC as a Cake Addin #addin nuget:?package=CHIA-RPC&version=1.6.2.5 // Install CHIA-RPC as a Cake Tool #tool nuget:?package=CHIA-RPC&version=1.6.2.5
Welcome to the CHIA-RPC Nuget package!
This package is a wrapper for RPC-JSON files used to communicate with the Chia client through the HTTP-API, WebSocket API, or CLI. The wrapper allows you to easily create the appropriate RPC object for all wallet endpoint calls, and access the RPC JSON either by calling .ToString() or by saving and loading the JSON file to and from disk.
To install the package, simply run the following command in the Nuget Package Manager console:
It is very recommended to check out the package Chia-Client-API
as well which uses CHIA-RPC to communicate with the chia client.
dotnet add package CHIA-RPC
dotnet add package Chia-Client-API
Here is a usage example of how all rpc endpoints are usable:
public static void Main()
{
// Create a new instance of the SendXCH_RPC class
var rpc = new SendXCH_RPC
{
wallet_id = 1234,
address = "chia1q2jzm7eg5t2k8vnq3tkkf5l7zj9mfx9v7p9t5",
amount = 10000,
fee = 500,
memos = new string[] { "Transaction from Example program" }
};
// Print the JSON representation of the RPC
Console.WriteLine(rpc.ToString());
// Save the RPC to a file
rpc.Save("transaction.rpc");
// Load the RPC from a file
var loadedRpc = SendXCH_RPC.Load("transaction.rpc");
// Print the JSON representation of the loaded RPC
Console.WriteLine(loadedRpc.ToString());
}
supported functions for each rpc are:
- The RPC class has several properties (optional and mandatory)
Save(string path)
: saves the rpc as a json-formatted file to the specified path.Load(string path)
: loads an rpc file from the specified path.ToString()
: returns a json-formatted string representation of the rpc.
Each RPC has its counter part such as SendXCH_Response
which is used to deserialize the client response
To use the rpcs, you would create a new instance of it, set its properties, and use its methods to save or load the rpc, and to get a string representation of the object.
It's important to note that this example doesn't actually send a transaction, it's just creating a serialized object which contains information needed to be sent to the network. You need to send it to your own wallet or any other software which can communicate with the network, and finally, the transaction will be broadcasted to the network.
NOTE: Chia-Client-API
package is available to actually communicate the rpcs to the client
For a full documentation besides xaml markup, please refer to the official chia documentation: https://docs.chia.net/rpc
Thank you for using CHIA-RPC!
Dependencies
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net7.0
- Chia-Metadata (>= 1.6.2)
- NFT.Storage.Net (>= 1.0.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on CHIA-RPC:
Package | Downloads |
---|---|
Chia-Client-API
CHIA-RPC is a C# Nuget library that allows developers to easily communicate with the Chia client. It provides a wrapper for making requests, sending transactions, and minting, making it a versatile tool for interacting with the Chia blockchain. With CHIA-RPC, you can easily integrate Chia functionality into your C# projects. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.2.0.17 | 186 | 3/13/2024 |
2.2.0.10 | 126 | 3/5/2024 |
2.2.0 | 137 | 3/1/2024 |
2.1.3 | 217 | 12/21/2023 |
2.1.1.8 | 169 | 12/8/2023 |
2.1.1.7 | 173 | 11/26/2023 |
2.1.1.6 | 168 | 11/15/2023 |
2.1.1.5 | 142 | 11/15/2023 |
2.1.1.4 | 148 | 11/9/2023 |
2.1.1.2 | 168 | 10/19/2023 |
2.1.1 | 176 | 10/13/2023 |
2.0.1 | 164 | 10/5/2023 |
2.0.0.1 | 186 | 8/31/2023 |
2.0.0 | 190 | 8/28/2023 |
1.8.2.13 | 224 | 8/22/2023 |
1.8.2.5 | 221 | 8/10/2023 |
1.8.2.4 | 192 | 8/9/2023 |
1.8.2.3 | 205 | 8/9/2023 |
1.8.2.2 | 189 | 8/9/2023 |
1.8.2.1 | 195 | 8/9/2023 |
1.8.2 | 193 | 7/26/2023 |
1.8.1.16 | 197 | 6/26/2023 |
1.8.1.15 | 209 | 6/23/2023 |
1.8.1.14 | 214 | 6/22/2023 |
1.8.1.13 | 189 | 6/22/2023 |
1.8.1.12 | 196 | 6/22/2023 |
1.8.1.11 | 201 | 6/22/2023 |
1.8.1.10 | 192 | 6/22/2023 |
1.8.1.9 | 210 | 6/21/2023 |
1.8.1.8 | 213 | 6/14/2023 |
1.8.1.7 | 204 | 6/14/2023 |
1.8.1.6 | 219 | 6/12/2023 |
1.8.1.5 | 228 | 6/9/2023 |
1.8.1.4 | 206 | 6/9/2023 |
1.8.1.3 | 210 | 6/9/2023 |
1.8.1.2 | 200 | 6/7/2023 |
1.8.1.1 | 202 | 6/7/2023 |
1.8.1 | 197 | 6/2/2023 |
1.8.0 | 209 | 5/11/2023 |
1.7.1 | 247 | 4/21/2023 |
1.6.2.14 | 367 | 2/8/2023 |
1.6.2.13 | 336 | 2/8/2023 |
1.6.2.12 | 360 | 2/5/2023 |
1.6.2.11 | 278 | 2/5/2023 |
1.6.2.10 | 288 | 2/5/2023 |
1.6.2.9 | 417 | 1/31/2023 |
1.6.2.8 | 388 | 1/28/2023 |
1.6.2.6 | 467 | 1/25/2023 |
1.6.2.5 | 355 | 1/24/2023 |
1.6.2.4 | 339 | 1/17/2023 |
1.6.2.3 | 359 | 1/16/2023 |
1.6.2.2 | 354 | 1/15/2023 |
1.6.2.1 | 362 | 1/13/2023 |
1.6.2 | 370 | 1/12/2023 |
1.6.1.5 | 388 | 1/11/2023 |
1.6.1.3 | 420 | 1/10/2023 |
1.6.1.2 | 313 | 1/10/2023 |
1.6.1.1 | 358 | 12/29/2022 |
1.6.1 | 324 | 12/29/2022 |
- fixed issue with file path if no extension was provided
- fixed json loading issue because of private fields