Skip to main content

deposit()

deposit() is a function from privacycash-evm used to deposit ETH or a supported ERC-20 token into Privacy Cash on an EVM network.

Parameters


Example Usage


Notes

  • The txSender callback receives an unsigned transaction object. Your implementation must sign and submit it, then return the transaction hash as a string.
  • Always check that the user is connected to a supported EVM mainnet before calling deposit(): Base (8453) or Ethereum (1).
  • A small additional native token balance is needed for gas on top of the deposit amount. Validate that the wallet has enough ETH for network fees before proceeding.
  • Current token support is Base ETH/USDC and Ethereum ETH/USDT.