SDK Reference

sdk.unshield()

typescript
await sdk.unshield(
  tokenAddress,   // string
  amount,         // bigint
  recipient       // string — any Ethereum address
);

Proves ownership of a note and withdraws tokens to recipient. The nullifier is marked spent on-chain. The recipient address is visible on-chain but has no cryptographic connection to the original deposit.

The recipient address is public. Use a fresh address if you want to minimize correlation.