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 (shield)
const asset: AssetAmount = { asset: ASSET_TOKEN_USDC, amount: 1_000_000n };
const shieldOp = await plugin.prepareShield(asset);
const txHash = await provider.sendTransaction(shieldOp);

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

Shared shape: Asset amount.


Next