Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
npm install privacycash --save
import { PrivacyCash } from 'privacycash' const client = new PrivacyCash({ RPC_url: 'YOUR_SOLANA_MAINNET_RPC_URL', owner: 'YOUR_PRIVATE_KEY', enableDebug: false // optional })
// Base58 encoded string const client1 = new PrivacyCash({ RPC_url: 'https://...', owner: '5Jd7...' // Base58 string }) // Byte array const client2 = new PrivacyCash({ RPC_url: 'https://...', owner: [1, 2, 3, ...] // number[] }) // Uint8Array const client3 = new PrivacyCash({ RPC_url: 'https://...', owner: new Uint8Array([1, 2, 3, ...]) }) // Solana Keypair object import { Keypair } from '@solana/web3.js' const client4 = new PrivacyCash({ RPC_url: 'https://...', owner: Keypair.generate() })