Skip to main content

Overview

Bridging from an EVM Privacy Cash pool is a three-step process:
  1. Quote — Request a bridge quote and a one-time deposit address from the relayer.
  2. Private Withdrawal — Execute a Privacy Cash withdrawal where the recipient is the relayer’s deposit address.
  3. Notify — Tell the relayer your transaction hash so it can release funds on the destination chain.
The EVM bridge API endpoint is: https://evm.privacycash.org/bridge

Supported Output Chains

Supported input pools are Base ETH/USDC and Ethereum ETH/USDT.

Prerequisites


Implementation

The example below bridges ETH. For ERC-20 inputs, set inputTokenName and token to the supported token for the selected network: usdc on Base or usdt on Ethereum.

Key Considerations

Fee Calculation

Two types of fees are deducted from withdrawAmountInput:
  1. Privacy Cash flat feeRENT_FEE (0.00025 ETH)
  2. Privacy Cash rate feeFEE_RATE (0.35% of withdrawal amount)
Pass the net amount (withdrawableAmount) to the quote API so the relayer knows exactly how much input token it will receive.

Address Validation

Validate the recipient address format before calling the quote API:
  • EVM chains (Ethereum, BNB, Polygon): 0x + 40 hex characters
  • Solana: Base58 string (32–44 characters)
  • Bitcoin: Bech32 (bc1...) or legacy format

Minimum Amount

ETH input uses a 0.005 ETH minimum. Stable-token inputs should use the relayer minimum returned by the quote flow.

Quote Freshness

Quotes expire quickly due to market price movement. Re-fetch the quote if more than ~5 seconds have passed before submitting the withdrawal.