Skip to main content

Current Token Support

Privacy Cash on Base currently supports ETH only. Unlike the Solana deployment which supports SPL tokens (USDC, USDT, etc.), the Base deployment operates with the native ETH asset.
TokenSupportNotes
ETH✓ SupportedNative asset
USDCComing soon
USDTComing soon

Working with ETH Amounts

The SDK uses decimal ETH strings (not wei) throughout.
import { deposit, withdraw, getBalance } from 'privacycash-evm'

// Deposit 0.05 ETH
await deposit({ depositAmountInput: 0.05, ... })

// Withdraw 0.03 ETH
await withdraw({ withdrawAmountInput: 0.03, ... })

// Balance is returned as a string
const { balance } = await getBalance({ ... })
console.log(balance) // "0.05000000000000000"

Converting to Wei

If you need to work in wei for UI display or comparison:
import { ethers } from 'ethers'

const { balance } = await getBalance({ signature, address })
const balanceWei = ethers.utils.parseEther(balance)
console.log('Balance in wei:', balanceWei.toString())

ERC-20 token support will be announced on the Privacy Cash Twitter.