///
The Quicksilver SDK empowers developers to implement real-time financial flows, such as streaming payments and event-driven interactions. This example demonstrates how to leverage these capabilities t
80 views
~80 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 implement real-time financial flows, such as streaming payments and event-driven interactions. This example demonstrates how to leverage these capabilities to build dynamic monetization and notification systems.
This page builds upon the concepts introduced in Getting Started and utilizes components detailed in the API Reference: Transaction Model and API Reference: QuicksilverClient.
examples/5-streaming-and-events.tsThis example showcases the powerful real-time capabilities of the Quicksilver SDK for managing streaming payments and integrating with event-driven workflows:
StreamConnectionThe StreamConnection class (src/realtime/sse.ts) is a crucial component that provides a high-level, event-driven interface for interacting with the Quicksilver Engine's Server-Sent Events (SSE) stream.
stream_event) and actual fund transfers (batch_created).StreamConnection extends Node.js's EventEmitter, making it intuitive to set up listeners for various events (e.g., 'open', 'error', 'close', 'stream_event', 'batch_created').By using StreamConnection, developers can easily build responsive user interfaces, trigger backend logic, or update internal states in real-time as money flows through their applications. This enables dynamic monetization models, live dashboards, and immediate feedback mechanisms for both senders and receivers in the agent economy.