///
The Quicksilver SDK empowers developers to build dynamic financial applications by providing robust features for real-time streaming payments and comprehensive Know Your Customer (KYC) verification. T
48 views
~48 views from guests
Guest views are estimated from total page views. These include anonymous visitors and users who weren't logged in when they viewed the page.
The Quicksilver SDK empowers developers to build dynamic financial applications by providing robust features for real-time streaming payments and comprehensive Know Your Customer (KYC) verification. These examples demonstrate how to leverage these capabilities to create modern, compliant, and highly interactive money flows.
Streaming payments enable continuous, time-based transfers of funds, perfect for subscription models, pay-per-second services, or real-time content monetization. The SDK integrates with Server-Sent Events (SSE) to provide real-time updates on stream status and batch payments.
This example from examples/5-streaming-and-events.ts demonstrates:
StreamConnection to monitor stream status (stream_event) and batch payments (batch_created).For more details on the Transaction model and its subscribe() method, refer to [API Reference - Core Models].
StreamConnectionThe StreamConnection class (from src/realtime/sse.ts) is an EventEmitter that abstracts the complexity of Server-Sent Events (SSE) connections. When you call transaction.subscribe(), client.streams.subscribe(id), client.streams.subscribeToAccount(accountId), or client.streams.subscribeToAll(), an instance of StreamConnection is returned.
You can interact with StreamConnection using standard Node.js EventEmitter methods:
on('open', listener): Fired when the SSE connection is successfully established.on('error', listener): Fired if an error occurs with the connection. It also handles reconnection attempts with exponential backoff.on('close', listener): Fired when the connection is explicitly closed using close().on('stream_event', listener): Specific to Quicksilver, this event delivers updates on the state of a streaming transaction (e.g., streamstarted, paused, resumed, stopped, completed).on('batch_created', listener): Specific to Quicksilver, this event notifies you when a batch payment (a discrete transfer of accumulated funds) has been created within a stream.The StreamConnection automatically handles reconnection attempts with exponential backoff, making it resilient to transient network issues.
Know Your Customer (KYC) verification is crucial for compliance and security in financial applications. The Quicksilver SDK provides methods within the Account model to manage the KYC process.
This example from examples/6-kyc-verification.ts demonstrates:
account.getVerificationStatus().account.submitKYC().account.verify() and account.rejectVerification().canTransact(), canDelegate()) which are tied to verification status.For more information on the Account model, see [API Reference - Core Models].