> For the complete documentation index, see [llms.txt](https://docs.zama.org/protocol/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zama.org/protocol/sdk/changelog/v3/v3-7.md).

# 3.7.x

Confidential ERC-4626 vaults, wildcard delegation, offline permits for more than 10 contracts, SDK usage telemetry headers, a T-Rex Zenith testnet preset, and permit signatures with a 0/1 recovery byt

This page covers the `3.7.x` line.

## 3.7.2

*Released 2026-11-09.*

### Revoked wrappers are no longer discovered

`useWrapperDiscovery` and `wrapperDiscoveryQueryOptions` now return `null` for a wrapper that has been revoked from the wrappers registry. A revoked pair keeps its non-zero wrapper address on-chain with `isValid: false`, and the query used to return that address anyway. Apps that offer shielding based on the hook's result stop offering revoked wrappers.

The result is also no longer cached for the whole session: it now expires with the registry TTL (`registryTTL`, 24 hours by default), like the other registry queries, so a revocation is picked up without a reload. See [useWrapperDiscovery](https://docs.zama.org/protocol/sdk/api-references/react/usewrapperdiscovery.md).

## 3.7.1

*Released 2026-10-22.*

### Security release: Node.js emergency patches and dependency fixes

Node.js shipped emergency security releases for every supported release line: **22.23.4**, **24.22.1** and **26.12.1**. Node.js 18 and 20 are end-of-life and get no fix. 3.7.1 moves the SDK's CI, release pipeline and example apps to Node.js 24.22.1, moves the example apps to Next.js 16.4, and patches open advisories in handlebars, vite, vitest, markdown-it, undici, brace-expansion and source-map-js.

These fixes are in the toolchain and the example apps, not in the SDK's own dependencies, so upgrading the package alone doesn't patch your app. What to do:

* **Upgrade your Node.js runtime** to 22.23.4, 24.22.1 or 26.12.1, matching your release line, anywhere the SDK runs on Node.js: backends, scripts and server-side rendering. The SDK requires Node.js 22 or later. Rebuild and redeploy containers so they pick up the patched runtime.
* **Browser-only apps** still use Node.js to build, and to serve pages if you use a framework like Next.js, so update those environments too.
* **If you started from an example app**, move it to Node.js 24.22.1 and Next.js 16.4.

## 3.7.0

*Released 2026-10-19.*

### Confidential ERC-4626 vault support

Both packages gain a `vaults` subpath — `@zama-fhe/sdk/vaults` and `@zama-fhe/react-sdk/vaults` — for depositing into and redeeming from confidential ERC-4626 vaults. Vault operations are batched on-chain: a deposit or redemption joins the currently open batch, anyone can dispatch the batch once it is old enough, and participants claim their shares or assets after finalization. The subpath is opt-in, so apps that don't use vaults don't bundle it.

`Vault` (`createVault`, or `useVault` in React) pairs a vault's deposit and redeem batchers behind ERC-4626-style `deposit` and `redeem` methods. Both grant the batcher an operator approval when one isn't already active, check the caller's confidential balance the way `Token.confidentialTransfer` does, encrypt the amount, and return the `batchId` they joined. The React hooks are `useDeposit` and `useRedeem`.

`VaultBatcher` (`createVaultBatcher` / `useVaultBatcher`) mirrors one batcher contract directly for the rest of the lifecycle: `batchState`, `timeUntilDispatchable`, `dispatchBatch`, `claim`, `quit` and `recover`, with matching `useBatchState`, `useTimeUntilDispatchable`, `useCurrentBatchId`, `useDispatchBatch`, `useClaim`, `useQuit` and `useRecover` hooks. `Vault` exposes its two batchers as `depositBatcher` and `redeemBatcher`, and resolves the underlying vault, asset and share tokens from them on first use.

See [Vault deposits and redemptions](https://docs.zama.org/protocol/sdk/vaults/deposits.md) for the full flow.

### Permit signatures with a 0/1 recovery byte

`parseSignedDecryptionPermit` (and `sdk.permits.registerPermit`, which uses it) now accepts 65-byte permit signatures whose recovery byte is `0`/`1` as well as `27`/`28`. The SDK normalizes the byte before the permit is verified; signatures already in `27`/`28` form and longer ERC-1271 signatures are unchanged.

### New chain preset: T-Rex Zenith testnet

`zenithTrexTestnet` (chain ID `936486`) joins the built-in chain presets in `@zama-fhe/sdk/chains`. It targets T-Rex's testnet instance on Zenith EVM, a Reth-based chain with Canton-mediated finality, and carries the addresses of a cleartext protocol deployment: ACL, `CleartextFHEVMExecutor`, KMS and input verifiers, and a wrapper registry with cUSDC/cUSDT mock pairs. Like `hoodi`, `ingenTestnet` and `bscTestnet` it has no hosted relayer, so pair it with the [`cleartext()` transport](https://docs.zama.org/protocol/sdk/api-references/sdk/relayercleartext.md). Its registry address is also included in the deprecated `DefaultRegistryAddresses` map. See [Chain presets](https://docs.zama.org/protocol/sdk/api-references/sdk/network-presets.md).

### Wildcard delegation

`delegateDecryption` (and `useDelegateDecryption`) now accepts the new `WILDCARD_CONTRACT` export as `contractAddress`. One grant then covers every confidential contract, including ones deployed later, instead of one delegation per contract. It doesn't widen access: the delegate can only read what the delegator can already read on each contract.

For a specific contract, `isActive`, `getStatus` and `useDelegationStatus` also report a wildcard-only grant as active, so existing status checks keep working; `getExpiry` still returns the raw per-contract expiry. Wildcard and per-contract grants to the same delegate can coexist, and a per-contract grant that an active wildcard grant already covers logs a warning but is still submitted. Passing the wildcard address as the delegate throws the new `DelegationDelegateCannotBeWildcardError` (`DELEGATION_DELEGATE_CANNOT_BE_WILDCARD`) before any transaction is sent. `MAX_UINT64`, the permanent-expiry value, is now exported too. See [Delegate for all contracts with the wildcard address](https://docs.zama.org/protocol/sdk/guides/delegated-decryption.md#6-delegate-for-all-contracts-with-the-wildcard-address-optional).

### Offline permits for more than 10 contracts

`sdk.offline.batchPreparePermits` and `sdk.permits.batchRegisterPermits` handle offline permit requests of any size. A permit holds at most 10 contracts, so `batchPreparePermits` returns one `PreparedPermit` per chunk of 10, and `batchRegisterPermits` takes the matching list of `{ prepared, signature }` pairs (`SignedPreparedPermit[]`) and registers them in order. The single-permit `preparePermit` and `registerPermit` are unchanged; `preparePermit` still rejects more than 10 contracts and now points at `batchPreparePermits`. React gains `useBatchPreparePermits` and `useBatchRegisterPermits`. See [Offline permits](https://docs.zama.org/protocol/sdk/guides/offline.md#offline-permits).

### SDK usage telemetry headers

Relayer requests now carry four `x-zama-sdk-*` headers: the SDK version, the package driving it (`core` or `react`), the transport (`web` or `node`), and the public SDK method the request belongs to (`confidential-transfer`, `unshield`, `balance-of`, …). They label traffic the relayer already receives so the SDK team can see version adoption and per-operation error rates; no end-user data is ever included, and a self-hosted relayer simply ignores them. Telemetry is on by default and `createConfig({ telemetry: false })` turns it off; on Node.js, `ZAMA_SDK_TELEMETRY=0` does the same for a whole process. See [SDK usage telemetry](https://docs.zama.org/protocol/sdk/guides/telemetry.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zama.org/protocol/sdk/changelog/v3/v3-7.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
