# @taquito/sapling-wasm

> Sapling Wasm bindings for Taquito and compatible consumers.

Latest version **0.3.0** (published 2026-11-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @taquito/sapling-wasm
pnpm add @taquito/sapling-wasm
yarn add @taquito/sapling-wasm
bun add @taquito/sapling-wasm
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2026-11-18 |
| First published | 2026-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 0 |
| Unpacked size | 5.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Author | ECAD Labs Inc |
| Maintainers | jevonearth, roxaneletourneau, hui-an.yang, gimbrailo.ecad |

## Links

- npm: https://www.npmjs.com/package/@taquito/sapling-wasm
- Repository: https://github.com/ecadlabs/sapling-wasm
- Issues: https://github.com/ecadlabs/sapling-wasm/issues
- npm.io page: https://npm.io/package/@taquito/sapling-wasm

## Recent versions

- 0.3.0 (latest) — 2026-11-18
- 0.2.0 — 2026-04-15
- 0.1.1 — 2026-04-11
- 0.1.0 — 2026-04-10
- 0.1.0-alpha.0 — 2026-04-10

## README

# Sapling Wasm

[![npm](https://img.shields.io/npm/v/@taquito/sapling-wasm.svg?colorB=brightgreen)](https://www.npmjs.com/package/@taquito/sapling-wasm)

A Wasm wrapper around [Zcash Rust crates](https://github.com/zcash/librustzcash), published as part of the Taquito package namespace.

The published package name is `@taquito/sapling-wasm`.

## Install

To add the JavaScript Sapling library into your project:

```bash
npm install --save @taquito/sapling-wasm
```

## Examples

```ts
import * as bip39 from 'bip39'
import * as sapling from '@taquito/sapling-wasm'
import { SaplingPaymentAddress } from '@taquito/sapling-wasm'

const mnemonic: string = bip39.generateMnemonic()
const seed: Uint8Array = await bip39.mnemonicToSeed(mnemonic, '')
const derivationPath: string = 'm/'

// create an extended spending key
const spendingKey: Uint8Array = await sapling.getExtendedSpendingKey(seed, derivationPath)
console.log('spendingKey =', Buffer.from(spendingKey).toString('hex'))

// create an extended full viewing key
const viewingKey: Uint8Array = await sapling.getExtendedFullViewingKey(seed, derivationPath)
console.log('viewingKey =', Buffer.from(viewingKey).toString('hex'))

// get default address
const address: SaplingPaymentAddress = await sapling.getPaymentAddressFromViewingKey(viewingKey)
console.log(
  'address.index =', Buffer.from(address.index).toString('hex'),
  'address.raw =', Buffer.from(address.raw).toString('hex')
)
```

More advanced examples can be found in `./examples`.

## Development

```bash
npm run build
```

---
_Source: https://npm.io/package/@taquito/sapling-wasm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
