Nerdbank.Zcash 0.3.185

Prefix Reserved
dotnet add package Nerdbank.Zcash --version 0.3.185                
NuGet\Install-Package Nerdbank.Zcash -Version 0.3.185                
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.185" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nerdbank.Zcash --version 0.3.185                
#r "nuget: Nerdbank.Zcash, 0.3.185"                
#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 Nerdbank.Zcash as a Cake Addin
#addin nuget:?package=Nerdbank.Zcash&version=0.3.185

// Install Nerdbank.Zcash as a Cake Tool
#tool nuget:?package=Nerdbank.Zcash&version=0.3.185                

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-ios17.0 is compatible.  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
0.3.185 237 10/8/2024
0.3.1-beta 310 4/6/2024
0.2.68-beta 183 2/19/2024
0.1.635-beta-ge3703560a5 144 8/1/2023
0.1.542-beta 126 4/26/2023