Skip to content

createZcashClient()

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / createZcashClient

createZcashClient(config): ZcashRPCClient

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:5194

Create a Zcash RPC client

ZcashConfig

Client configuration

ZcashRPCClient

ZcashRPCClient instance

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.

// ✅ 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,
})