Skip to main content

prepareUnshield — Withdraw from Tenebrae

Private value exits to a public wallet. The withdraw amount is public on-chain.

plugin.prepareUnshield(asset: AssetAmount, to: Address): Promise<PrivateOperation>
ParameterTypeRequiredDescription
assetAssetAmountyesAmount to withdraw
toAddressyesPublic payout EOA (exit wallet)

Address is intentional. Withdraw exits Protocol private state to a public wallet. to is that payout EOA — not a transfer-link URL and not wallet paste intake. Amount is public on-chain.

Sandbox Withdraw sketches bind to to the connected wallet as the public destination.

// Public payout Address (Sandbox / Kohaku) — not a transfer-link path
const withdrawOp = await plugin.prepareUnshield(asset, WALLET_ADDRESS);
const txHash = await plugin.broadcast.privateOperation(withdrawOp);

Shared shape: Asset amount.


Next