Supported Tokens
Privacy Cash supports the following SPL tokens:Deposit SPL Tokens
Deposit any supported SPL token into Privacy Cash.Parameters
Provide either
amount OR base_units, not both. The amount parameter is converted to base units automatically.Returns
Example: Deposit USDC
Example: Deposit USDT
Example: Using Base Units
Deposit USDC (Convenience Method)
A convenience method specifically for USDC deposits:Example
Withdraw SPL Tokens
Withdraw any supported SPL token from your private balance.Parameters
Returns
Example: Withdraw USDC
Example: Withdraw USDT
Withdraw USDC (Convenience Method)
Example
Get SPL Balance
Check your private balance for any supported SPL token.Example
Get USDC Balance (Convenience Method)
Complete Example
Here’s a complete example working with USDC and USDT:SPL Token Fees
The rent fee varies by token and covers the Solana account rent for the recipient’s token account if it doesn’t exist.
Requirements
Before depositing SPL tokens, ensure:- Token account exists: You must have a token account with the SPL token
- Sufficient balance: Enough tokens to cover the deposit amount
- SOL for fees: At least 0.002 SOL for Solana transaction fees
