Availability
All six vaults are on Ethereum mainnet. For testing,
ethereum-sepolia-usdc-zama-steakhouse-usdc-confidential-vault runs on Ethereum Sepolia with test cUSDC and a zero reward rate.
Enable the Zama yields for your project in the Yield.xyz dashboard, from the project’s enabled-yields list. If you do not have a project yet, set one up first. Then query GET /v1/yields?providers=zama for the live list of Zama vaults enabled for your project. Contract addresses are on the yield object, in the tokens, rewardTokens and argument options, so read them from there rather than hardcoding them.
Confidential tokens
A confidential token is an ERC-7984 token whose balances and transfer amounts are encrypted on-chain. Each one wraps a plain ERC-20 token and holds the same value. A Zama vault takes the confidential token, not the plain one.
How a user takes a position depends on what the wallet holds:
- The wallet holds cUSDC. It deposits cUSDC directly.
- The wallet holds USDC. It wraps USDC into cUSDC first: an approval of USDC if the allowance is short, then a wrap on cUSDC, which is the wrapper contract for USDC. The Zama widget sends these transactions for the user, and the Zama API guide shows them in code.
How confidential deposits work
When you deposit, your app encrypts the amount with the Zama SDK before it goes on-chain, so the amount you join a batch with stays encrypted. To keep the chosen vault private too, a deposit carries an encrypted amount for every Zama vault of that asset: the real amount for the vault you chose and an encrypted zero for each of the others. Anyone reading the chain sees a deposit into every vault of that asset and cannot tell which one holds the real amount. Deposits do not enter the vault one by one. They join a batch, and the batch settles against the vault as one combined amount. Your position starts earning when its batch settles. Confidentiality has limits that Zama documents in Confidentiality:- Wrapping is public. Wrapping USDC into cUSDC is a public transfer, so a wrap right before a deposit shows the most the deposit can be. Wrapping early, or holding a confidential balance, avoids this.
- Batch totals are public. Each batch decrypts one value, its total. Who joined and when is public too.
- A batch with one participant reveals that amount, because the total is that one amount.
- The vault you join is public, unless every request sends a leg to each vault, as Yield.xyz requests do.
Batch schedule
The yield’s
investmentSchedule exposes this schedule (see Yield metadata), and a pending position’s date shows when its batch is due, while the batch can still be canceled. A confirmed transaction means a request joined a batch, not that the batch settled: the action records DEPOSIT_SETTLED, REDEMPTION_SETTLED or a cancellation in its events when the outcome is known. The settled position shows in balances straight away, and the pending row usually clears within about 10 minutes for a deposit and about 20 minutes for a private exit.
Entering
You enter with the confidential token only: pass it asinputToken, and the action returns one DEPOSIT transaction. A plain token such as USDC is rejected, so wrap it first. The yield’s inputTokens also lists the plain token because the Zama widget wraps it for the user, but enter itself accepts only the confidential token. The Earn API takes encrypted amounts only, and a request with a plain amount other than "0" is rejected. Your app encrypts the amount with the Zama SDK and sends the encrypted values as action arguments. The Zama API guide covers the arguments, the encryption and the error responses step by step.
The Zama widget handles wrapping and encryption for the user, so a widget integration needs no Zama code of its own.
Exiting
A Zama exit is either private or instant. You pick one with the exit’soutputToken.
- Private. Omit
outputTokenor set it to the confidential token. The withdrawal joins the next daily batch and pays out in the confidential token, so the amount stays encrypted. - Instant. Set
outputTokento the plain token (for example USDC). The withdrawal does not wait for a batch, but the amount becomes public. It finishes with aWITHDRAWpending action on thewithdrawablebalance, which returnsWITHDRAWandREDEEM. If it stops afterWITHDRAW, resume theREDEEMfrom the action. See Exit instantly.
Pending requests and canceling
A deposit or private withdrawal made through Yield.xyz actions shows, while it waits for its batch, as anentering or exiting balance with a CANCEL_PENDING pending action, submitted through POST /v1/actions/manage. A request made only outside Yield.xyz, for example in the Zama app, does not show as pending. Once the batch settles, a deposit shows as an active balance, and a private withdrawal pays the confidential token to the wallet. An instant exit started outside Yield.xyz has no withdrawable balance, so finish it in the app where it started. Canceling returns everything that wallet has in that batch, including amounts added to the same batch from the Zama app, straight to the wallet: a canceled deposit returns the confidential token (for example cUSDC), and a canceled private withdrawal returns the vault share token. A batch cannot be partly canceled, and a batch that has been sent to the vault cannot be canceled. While a cancel is waiting to confirm, the position stays listed without a cancel action.
Balances
Zama balances are encrypted. An encrypted Zama balance hasisEncrypted: true, an empty amount, the encrypted handle in shareAmountRaw, and no USD value. The only plain row is an instant exit waiting for its final REDEEM. Only the owner can reveal an amount, by signing a decryption permit with their wallet. Settled positions are read on-chain wherever they were made. To find one made outside Yield.xyz with a network-wide balances call, pass the vault’s yieldId. If your project returns balances only for yields the address has used through Yield.xyz, the position shows after its first action on that vault through Yield.xyz (see Read and reveal balances). See Balances and positions for the balance types.
After a deposit or a private withdrawal, positions in other Zama vaults of the same asset can appear. They are encrypted like any other Zama balance and reveal as zero. They come from the encrypted zero amounts sent to the vaults you did not choose, which is how Zama keeps the chosen vault private.
Reward rate
The reward rate is the base APY of the underlying vault. Share value rises as the vault earns, and no claim step is needed.Zama campaign incentives need a separate opt-in in the Zama app. The Earn API and the widget do not perform this opt-in, and the reward rate does not include these incentives.
List the live yields
Copy this request to list the Zama yields enabled for your project. Yield IDs change as vaults are added, so query the API rather than hardcoding them.Next steps
Zama API
Encrypt amounts, enter, exit, cancel, and reveal balances through the Earn API.
Zama widget
Offer Zama vaults in the widget, with wrapping and encryption handled for you.
Vaults
Compare Zama against other vault integrations.
Zama documentation
Zama’s own docs on the protocol, confidential tokens and the SDK.

