pctestusdc
v1.0.18
Published
This is the SDK for Privacy Cash. It has been audited by Zigtur (https://x.com/zigtur).
Readme
Privacy Cash SDK
This is the SDK for Privacy Cash. It has been audited by Zigtur (https://x.com/zigtur).
Usage
This SDK provides APIs for developers to interact with Privacy Cash relayers easily. Developers can easily deposit/withdraw/query balances in Privacy Cash solana program.
Main APIs for this SDK are: deposit(), withdraw(), getPrivateBalance().
Check the example project under /example folder. The code should be fairly self-explanatory.
Use node version 24 or above.
Tests
- To run unit tests:
npm test- To run e2e test (on Mainnet), you need to put your private key (PRIVATE_KEY) inside .env file under the project root directory, and then run:
npm run teste2eRunning e2e tests will cost some transaction fees on your wallet, so don't put too much SOL into your wallet. Maybe put 0.1 SOL, and the tests might cost 0.02 SOL.
