Events
Real time transaction notification
To create a client application that receives real-time notifications for transactions (BSV, Token, and NFT), we will use the socket.io-client package. This document provides a step-by-step guide for implementing this functionality.
Step 1: User Authentication
The first step is to authenticate the user by making a request to the "/v1/login" endpoint. This is a necessary step to ensure that only authorized users can receive transaction notifications.
Step 2: Event Listening
The next step is to set up the client application to listen for specific events in order to receive relevant messages and data. The following events can be listened for:
"notification": To receive transactional notifications.
"balance": To receive updates on balance changes.
"history": To receive updates on history changes.
Here is an example of how to implement event listening in your client application:
Last updated