Nerdbank.Zcash 0.3.1-beta

Prefix Reserved
This is a prerelease version of Nerdbank.Zcash.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Nerdbank.Zcash --version 0.3.1-beta
                    
NuGet\Install-Package Nerdbank.Zcash -Version 0.3.1-beta
                    
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="Nerdbank.Zcash" Version="0.3.1-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nerdbank.Zcash" Version="0.3.1-beta" />
                    
Directory.Packages.props
<PackageReference Include="Nerdbank.Zcash" />
                    
Project file
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 Nerdbank.Zcash --version 0.3.1-beta
                    
#r "nuget: Nerdbank.Zcash, 0.3.1-beta"
                    
#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.
#addin nuget:?package=Nerdbank.Zcash&version=0.3.1-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Nerdbank.Zcash&version=0.3.1-beta&prerelease
                    
Install as a Cake Tool

Nerdbank.Zcash

Features

  • Parse and construct Zcash addresses, including transparent, shielded and unified addresses.
  • Extract the receivers from unified addresses and others.
  • Diversifiable addresses.
  • Generate or import Zcash accounts backed by HD wallets or individual keys.

Light client functionality

  • Programmatically receive or spend Zcash.
  • Supports Orchard, Sapling and Transparent pools.
  • Zcash CLI allows you to download and send transactions with simple commands and no programming.
  • User-friendly balances that helps an app to illustrate spendable funds vs. other funds that are held by the user but are not yet available for spending.
  • Supports spending and full viewing keys. (Incoming viewing keys coming later.)

Implemented ZIPs

  • ZIP-32 HD Wallets
  • ZIP-173 Bech-32 Format
  • ZIP-225 Version 5 Transaction Format
  • ZIP-302 Memos
  • ZIP-321 Payment request URIs
  • and more (indirectly, through rust crates that we use)

This project sponsored in part by the 🛡️ Zcash Foundation.

Online live demo

See this library running live via Blazor in your web browser.

Sample usage

using Nerdbank.Zcash;

// Parse addresses:
var transparent = ZcashAddress.Parse("t1a7w3qM23i4ajQcbX5wd6oH4zTY8Bry5vF");
var sapling = ZcashAddress.Parse("zs1znewe2leucm8gsd2ue24kvp3jjjwgrhmytmv0scenaf460kdj70r299a88r8n0pyvwz7c9skfmy");
var unified = ZcashAddress.Parse("u1vv2ws6xhs72faugmlrasyeq298l05rrj6wfw8hr3r29y3czev5qt4ugp7kylz6suu04363ze92dfg8ftxf3237js0x9p5r82fgy47xkjnw75tqaevhfh0rnua72hurt22v3w3f7h8yt6mxaa0wpeeh9jcm359ww3rl6fj5ylqqv54uuwrs8q4gys9r3cxdm3yslsh3rt6p7wznzhky7");

// Extract the receivers from unified addresses:
SaplingAddress? sapling = unified.Receivers.OfType<SaplingAddress>().FirstOrDefault();

// Construct unified addresses:
UnifiedAddress unified = UnifiedAddress.Create(new[]
{
	ZcashAddress.Parse("zs1znewe2leucm8gsd2ue24kvp3jjjwgrhmytmv0scenaf460kdj70r299a88r8n0pyvwz7c9skfmy"),
	ZcashAddress.Parse("t1a7w3qM23i4ajQcbX5wd6oH4zTY8Bry5vF"),
});
string myUnified = unified.ToString();
Product 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.

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.3.185 397 10/8/2024
0.3.1-beta 341 4/6/2024
0.2.68-beta 213 2/19/2024
0.1.635-beta-ge3703560a5 173 8/1/2023
0.1.542-beta 156 4/26/2023