ChiaWalletSdk 0.33.0-dotnet.3
This is a prerelease version of ChiaWalletSdk.
dotnet add package ChiaWalletSdk --version 0.33.0-dotnet.3
NuGet\Install-Package ChiaWalletSdk -Version 0.33.0-dotnet.3
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="ChiaWalletSdk" Version="0.33.0-dotnet.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ChiaWalletSdk" Version="0.33.0-dotnet.3" />
<PackageReference Include="ChiaWalletSdk" />
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 ChiaWalletSdk --version 0.33.0-dotnet.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ChiaWalletSdk, 0.33.0-dotnet.3"
#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 ChiaWalletSdk@0.33.0-dotnet.3
#: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=ChiaWalletSdk&version=0.33.0-dotnet.3&prerelease
#tool nuget:?package=ChiaWalletSdk&version=0.33.0-dotnet.3&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ChiaWalletSdk
C# bindings for the Chia Wallet SDK -- a Rust library for building Chia blockchain wallets, exposed to .NET via UniFFI.
Native libraries for macOS (arm64, x64), Windows (x64), and Linux (x64) are bundled in the package.
Quick Start
using ChiaWalletSdk;
using System.Numerics;
// Generate a BLS key from a seed phrase
var mnemonic = Mnemonic.Generate();
var seed = mnemonic.ToSeed("");
var secretKey = SecretKey.FromSeed(seed);
var publicKey = secretKey.PublicKey();
// Encode a puzzle hash as a Chia address
var puzzleHash = new byte[32];
var address = new Address(puzzleHash, "xch");
Console.WriteLine(address.Encode()); // "xch1..."
// Async RPC
var client = await RpcClient.New("https://api.coinset.org");
var state = await client.GetBlockchainState();
API Surface
| Module | Classes / Functions |
|---|---|
| BLS keys | SecretKey, PublicKey, Signature, AggregateSignature |
| Secp keys | K1SecretKey, K1PublicKey, K1Signature, R1SecretKey, R1PublicKey, R1Signature |
| Address | Address |
| Mnemonic | Mnemonic |
| Coin | Coin, CoinSpend, CoinState |
| CLVM | Clvm, Program, CurriedProgram, Spend |
| Conditions | CreateCoin, AggSigMe, ReserveFee, and more |
| Puzzles | StandardPuzzle, CatPuzzle, NftPuzzle, DlPuzzle, SingletonPuzzle, etc. |
| Offers | Offer, ParsedOffer |
| RPC | RpcClient (async) |
| Simulator | Simulator (async, testing) |
| Utils | sha256, hash_to_g2, etc. |
| Constants | Constants (puzzle hashes for all built-in puzzles) |
Type Mapping
| Rust type | C# type | Notes |
|---|---|---|
Vec<u8> / bytes |
byte[] |
Puzzle hashes, keys, signatures |
u64, u128, BigInt |
string |
Parse with BigInteger.Parse() |
u8--u32, i8--i32 |
native int types | Passed through directly |
Option<T> |
T? (nullable) |
|
Vec<T> |
List<T> |
|
| Rust struct / class | C# class | Reference-counted via Arc |
Amounts and large integers
Chia amounts and arbitrary-precision integers are passed as decimal strings:
string amountStr = coin.GetAmount();
BigInteger amount = BigInteger.Parse(amountStr);
Async Methods
Async methods (RPC, simulator) return Task<T> and run on the Rust tokio runtime:
var client = await RpcClient.New("https://api.coinset.org");
var state = await client.GetBlockchainState();
More Information
- Source & full documentation
- Upstream Chia Wallet SDK
- License: Apache-2.0
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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.
-
net8.0
- No dependencies.
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 |
|---|---|---|
| 0.33.0-dotnet.3 | 111 | 6/8/2026 |
| 0.33.0-dotnet.1 | 74 | 6/1/2026 |
| 0.0.6-local | 112 | 4/16/2026 |
| 0.0.5-local | 84 | 4/12/2026 |
| 0.0.4-local | 89 | 4/10/2026 |
| 0.0.3-local | 85 | 4/10/2026 |
| 0.0.2-local | 72 | 4/10/2026 |
| 0.0.1-local | 93 | 4/10/2026 |
| 0.0.0-local | 79 | 4/9/2026 |