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 (unshield)
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 Host paste intake. Amount is public on-chain.

Sandbox Withdraw sketches bind to to the active Host wallet as the public destination.

// Public payout Address (Sandbox / Kohaku) — not a transfer-link path
const unshieldOp = await plugin.prepareUnshield(asset, WALLET_ADDRESS_A);
const txHash = await plugin.broadcastPrivateOperation(unshieldOp);

Shared shape: Asset amount.


Next