Skip to main content

prepareShield — Deposit into Tenebrae

Public assets enter Tenebrae Protocol private settlement. The deposit amount is public on-chain.

plugin.prepareShield(asset: AssetAmount): Promise<PublicOperation>
ParameterTypeRequiredDescription
assetAssetAmountyesAmount to deposit
const asset: AssetAmount = { asset: ASSET_TOKEN_USDC, amount: 1_000_000n };
const depositOp = await plugin.prepareShield(asset);
const txHash = await provider.sendTransaction(depositOp);

Returns: wallet-sendable public operation. Wait for confirmation, then re-balance when ready.

Shared shape: Asset amount.


Next