Edit this page on GitHub (opens in a new tab)
zecd is a shielded-first wallet server for Zcash, built on librustzcash and exposed through Bitcoin Core's JSON-RPC dialect. It gives developers and payment integrators a familiar, Bitcoin-compatible API for interacting with Zcash — while making Orchard (the most private pool) the default. Developed by zec.rocks, zecd is designed to replace zcashd's wallet functionality in modern, cloud-native deployments.
Current version: 0.5.0-rc3 (July 13, 2026) — with Ironwood (NU6.3) support. Install via cargo install zecd or use the official Docker image.
zcashd was Zcash's original node and wallet combined — forked from Bitcoin's C++ codebase in 2016. Over time, this created friction: the code is difficult to maintain, the wallet is tightly coupled to the node, and transparent addresses are presented as first-class options alongside shielded ones.
zecd separates wallet responsibility from consensus. It is a dedicated wallet layer that sits between applications and a Zebra full node, providing:
zecd operates in a three-tier model:
Your app / Bitcoin RPC client
↓ JSON-RPC
zecd
(keys, scanning, proving, RPC)
↓ JSON-RPC (local only)
Zebra
(full node — consensus, mempool, chain data)
zecd communicates with Zebra exclusively through local JSON-RPC — no peer-to-peer networking, no third-party indexers, no lightwalletd. The Zebra connection is deliberately local-only: zecd will refuse to send credentials to a globally-routable host unless explicitly configured for an out-of-band secured tunnel (e.g. WireGuard or SSH).
zecd uses Orchard Unified Addresses as the default address type. Sapling and transparent (t-address) pools require explicit configuration per wallet. This design reduces the risk of accidental transparent sends — a common privacy pitfall in older Zcash tooling.
Privacy policy is configurable per call or globally in [spend] privacy_policy:
| Policy | Behavior |
|---|---|
AllowRevealedRecipients (default) | Permits sends to transparent recipients; reveals amount and recipient on-chain |
AllowRevealedAmounts | Permits cross-pool sends (Sapling↔Orchard) but rejects transparent recipients |
FullPrivacy | Only fully-shielded sends within one pool; rejects transparent recipients and cross-pool |
AllowFullyTransparent | Also permits t→t sends funded from transparent UTXOs |
zecd implements Bitcoin Core's JSON-RPC dialect with conformance across:
getblockchaininfo, getbalance, getnewaddress, listtransactions, sendtoaddress, sendmany)rpcauth entries, and cookie file authenticationThis means many existing Bitcoin payment libraries, exchange integrations, and monitoring tools can interact with Zcash via zecd with little or no code changes.
The conformance suite (140+ checks) runs on every PR against a live regtest daemon and was also validated against the public testnet.
zecd exposes Zcash's shielded memo feature through the familiar Bitcoin RPC surface — something unavailable in standard Bitcoin tooling:
sendtoaddress accepts an optional hex memo as an extra trailing parameter (up to 512 bytes; rejected for transparent recipients)listtransactions and gettransaction include memo (hex) and memoStr (decoded text) fields when an output carries onez_sendmany "memo-only-send" pattern)This makes zecd suitable for applications that need private, on-chain messaging alongside payments.
zecd persists no off-chain state that a seed-only restore couldn't rebuild. The wallet database (data.sqlite) is entirely derivable from the seed phrase — shielded funds are recovered unconditionally; transparent funds are recovered up to the configured gap limit.
To restore a wallet from seed:
zecd init --restore --birthday <block-height>
This makes the data directory disposable: a container with no persistent volume, rebuilt from the seed on each start, loses nothing critical. Operators are responsible for tracking addresses they hand out — zecd only remembers addresses once they have received funds on-chain.
Labels are intentionally absent. Because labels have no on-chain source and cannot be reconstructed from seed, zecd simply does not support them. Calling label methods returns a method-not-found error (-32601).
zecd derives compact blocks, tree state, and mempool visibility directly from Zebra's JSON-RPC. There is no lightwalletd to operate or maintain — reducing operational complexity for self-hosted deployments.
zecd's stateless architecture is designed for Docker and Kubernetes environments:
zebra → zecd) available in the repository9233 with configurable readiness probes (synced or connected)bootstrap_from_keys (default on): an empty data directory next to keys.toml auto-rebuilds the wallet at startup — deploy by mounting one Secret and starting with an empty PVCzecd supports three key-custody models, suited for different deployment and security requirements:
The seed mnemonic in keys.toml is wrapped to an age identity file (identity.txt). With the default auto_unlock = true, the seed is decrypted into memory at startup so sends are unattended and no walletpassphrase call is needed.
Best for: automated payment processors, exchange hot wallets, developer environments.
zecd init --datadir ./data --wallet default --account-name primary
Store
identity.txtoutside the data directory on mainnet — anyone who reads both files has spend authority.
The mnemonic is wrapped with a passphrase (age scrypt) instead of an identity file. The wallet starts locked; walletpassphrase "<pass>" <timeout> unlocks it for the given duration and auto-relocks at timeout — matching Bitcoin Core's encrypted wallet behavior.
Best for: hot wallets where unattended spend authority is not required; interactive operator workflows.
zecd init --datadir ./data --encrypt
# later: walletpassphrase "my-passphrase" 300
Initialized with a Unified Full Viewing Key (UFVK) exported from another wallet. Can receive, scan, and report balances — but cannot sign transactions. Ideal for monitoring, invoicing, or audit nodes separate from the signing wallet.
# On the signing wallet's host:
zecd export-ufvk
# On the watch-only host:
zecd init --datadir ./data-watch --ufvk "uview1..." --birthday <height>
Funds are recoverable from the mnemonic alone. Everything else is a cache.
| Artifact | Location | What it protects | Back up? |
|---|---|---|---|
| 24-word mnemonic | Shown once at zecd init | The funds — loss = permanent loss | Yes — offline (paper/HSM) |
keys.toml | <wallet dir>/keys.toml | Encrypted seed + birthday + network | Yes — as a Secret |
identity.txt | [keys] age_identity | Decrypts keys.toml (spend authority) | Yes — separately from keys.toml |
The data directory must be host-local. zecd's single-instance lock (
<datadir>/.lock) is an OS advisory lock — it does not span hosts. Never share a data directory read-write across machines (NFS, KubernetesReadWriteMany) — two zecd instances would corrupt the wallet DB. UseReadWriteOncevolumes in Kubernetes.
For deployments where a credential leak would be catastrophic, zecd supports restricting the RPC surface to a chosen subset of methods:
[rpc]
allowed_methods = ["getblockchaininfo", "getbalance", "getnewaddress", "listtransactions"]
Any method not on the list returns -32601 (HTTP 404) — indistinguishable from a method that doesn't exist, so a locked-down server discloses nothing about what it disabled. A receive-only invoicer can disable sendtoaddress, sendmany, and stop to minimize blast radius from a compromised client.
Developers migrating from Bitcoin or zcashd tooling should be aware of these intentional divergences:
| Behavior | Bitcoin Core | zecd |
|---|---|---|
| Address format | 1... / bc1... | u1... (Orchard Unified Address) — not parseable as a Bitcoin address by string-parsing clients |
| Labels | Full label store | Not implemented — setlabel, listlabels, etc. return -32601 |
| Fees | User-settable; fee market | ZIP-317 deterministic only; settxfee, fee_rate, subtractfeefromamount rejected with |
Prerequisites: Zebra running locally with rpc.listen_addr = 127.0.0.1:18234 (testnet).
Install from crates.io (0.4.3+):
cargo install zecd
Or build from source:
git clone https://github.com/zecrocks/zecd && cd zecd
cargo build --release
# 1. Initialize a testnet wallet (generates a 24-word mnemonic and an account)
zecd --datadir ./data --testnet init --wallet default --account-name primary
# 2. Start the daemon (syncs in background, serves JSON-RPC on port 18232)
zecd --datadir ./data --testnet \
--rpcuser zec --rpcpassword secret --rpcbind 127.0.0.1 --rpcport 18232
Interact via curl:
curl -s --user zec:secret --data-binary \
'{"jsonrpc":"1.0","id":"1","method":"getblockchaininfo","params":[]}' \
-H 'content-type: text/plain;' http://127.0.0.1:18232/
Interact via Python (using a Bitcoin RPC library):
from bitcoinrpc.authproxy import AuthServiceProxy
rpc = AuthServiceProxy("http://zec:secret@127.0.0.1:18232")
print(rpc.getblockchaininfo())
addr = rpc.getnewaddress() # returns a u1... Orchard Unified Address
print(rpc.getbalance())
print(rpc.listtransactions("*", 20))
# Send with a shielded memo
rpc.sendtoaddress(addr, 0.001, "", "", False, "48656c6c6f205a6563617368") # hex memo
Restore from seed:
zecd --datadir ./data init --restore --birthday 2500000
# paste your 24-word mnemonic when prompted
| Network | zecd RPC | Zebra RPC (backend) | Health |
|---|---|---|---|
| Mainnet | 8232 | 8234 | 9233 |
| Testnet | 18232 | 18234 | 9233 |
| zcashd | Zaino | zecd | |
|---|---|---|---|
| Role | Full node + wallet | Indexer (replaces lightwalletd) | Wallet server only |
| Language | C++ | Rust | Rust |
| Status | Deprecated | Active | Active (v0.5.0-rc3, Jul 2026) |
| Default pool | Transparent | N/A | Orchard (shielded) |
| RPC dialect | zcashd-specific | gRPC (lightwalletd) | Bitcoin Core JSON-RPC |
| Requires full node | Yes (self) | Zebra or zcashd | Zebra |
| Stateless recovery | No | N/A | Yes (seed-only) |
| Birthday height | Inside keys.toml | Makes restore fast (any height before first tx) | Record with mnemonic |
data.sqlite | <wallet dir>/data.sqlite | Wallet cache — rebuilt from seed on restore | No — disposable |
blocks/ | <wallet dir>/blocks/ | Compact block cache | No — never ship; can grow large |
.cookie | <datadir>/.cookie | Ephemeral RPC cookie | No — regenerated at startup |
-8| Memos | Not supported | sendtoaddress accepts hex memo; history has memo + memoStr fields |
| Confirmations to spend | 1 | 3 (own change) / 10 (third-party) — configurable via trusted_confirmations / untrusted_confirmations |
listsinceblock on reorg | Walks back to fork | Returns -5 (Block not found) if cursor is reorged away — re-baseline with parameterless call |
Duplicate recipients in sendmany | Error | JSON parser collapses duplicates (last wins) before zecd sees them — don't list the same address twice |
| Balance during initial sync | Blocks or warm-up | Serves partial balance — gate automation on GET /readyz (returns 503 until fully synced and enhancement backlog is drained) |
minconf 0 in getbalance | 0-conf balance | Served as 1 — a shielded note is never spendable unmined |
| Shielded memos | Yes (z_sendmany) | N/A | Yes (Bitcoin RPC surface) |
| Watch-only (UFVK) | Yes | Yes | Yes |
| Cloud-native | No | Partial | Yes |
| Install | Build/binary | Build | cargo install zecd |