SDK Flow for 100xLink Web-Based Wallet
Overview
This document outlines the flow of the SDK developed for the 100xLink web-based wallet. The SDK facilitates the construction of transaction objects at the consumer DApp’s end, validates these transactions on the 100xLink backend, signs them with the user's private key on the frontend, and returns the signed transaction object to the DApp for submission to the blockchain.
Flow Diagram
sdk-utilization-flow.png

Step-by-Step Flow
1. Transaction Construction at Consumer DApp
- Description:
- The consumer DApp constructs a transaction object using the SDK provided by 100xLink. This object contains all necessary transaction details such as the recipient address, amount, gas fees, and any additional metadata.
- Key Points:
- The SDK provides a simple and intuitive API for transaction creation.
- Developers can integrate this into their DApp with minimal effort.
2. Sending Transaction Object to 100xLink Backend
- Description:
- The constructed transaction object is sent from the consumer DApp to the 100xLink backend via a secure API endpoint.
- Key Points:
- The transaction object is validated for structure and content.
- Security measures are in place to ensure data integrity during transmission.
3. Transaction Validation and Processing at 100xLink Backend
- Description:
- The 100xLink backend performs various checks on the transaction object. These checks ensure that the transaction is valid, complies with business logic, and adheres to any relevant regulations.
- Key Points:
- If the transaction passes all checks, it is prepared for signing by the 100xLink frontend.
- The backend sends the transaction object to the frontend for signing.
4. Sending Signed Transaction Object Back to the DApp