WebSocket Confirms

Dual screen confirmations don't need webhooks. Yatori's memo structure with unique IDs (YIDs) enables decentralized QR code confirmations by listening directly to Solana blockchain events. When a transaction is signed and submitted, your application can listen for the specific transaction on-chain using WebSocket connections, matching the YID in the memo to confirm the payment.

This architecture eliminates the need for centralized webhook infrastructure—your app connects directly to Solana's blockchain events, ensuring real-time, decentralized confirmation of transactions. The memo structure with unique YIDs embedded in each transaction allows you to track and confirm specific payments without relying on backend services.

See the Nuxt/Ionic Mobile Template for a complete implementation example.

Client Implementation

The following code example shows how to set up WebSocket listening for transaction confirmations using the Zanshin proxy:

Zanshin WebSocket Proxy

The code above connects to Zanshin, a high-performance Solana WebSocket proxy built in Rust and deployed on Google Cloud Platform. Zanshin provides reliable, scalable WebSocket connections to Solana's blockchain events.

Note: Client-side implementation without the Zanshin proxy is coming soon. For now, use the Zanshin proxy for production WebSocket connections.