createZcashClient()
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / createZcashClient
Function: createZcashClient()
Section titled “Function: createZcashClient()”createZcashClient(
config):ZcashRPCClient
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:5194
Create a Zcash RPC client
Parameters
Section titled “Parameters”config
Section titled “config”Client configuration
Returns
Section titled “Returns”ZcashRPCClient instance
Security
Section titled “Security”IMPORTANT: Always use HTTPS in production environments. HTTP Basic Auth transmits credentials in cleartext without TLS/HTTPS. Configure your zcashd node with TLS certificates and use https:// URLs.
Example
Section titled “Example”// ✅ Production (HTTPS)const client = createZcashClient({ host: 'https://your-node.com', port: 8232, username: process.env.ZCASH_RPC_USER, password: process.env.ZCASH_RPC_PASS,})
// ⚠️ Development only (HTTP)const testClient = createZcashClient({ host: '127.0.0.1', port: 18232, username: 'test', password: 'test', testnet: true,})