
The KeyPOS Nexa Point of Sale script is a web-based application designed to facilitate transactions using Nexa cryptocurrency. It leverages IndexedDB for local data storage, allowing users to manage their POS history and settings efficiently.
Key Features
- Database Initialization: The script sets up an IndexedDB database named "NexaPOS" with two object stores: one for POS transactions and another for settings. This ensures that user data is stored securely and can be accessed quickly.
- Address Management: Users can save and load their Nexa wallet address. The script provides functionality to validate and store the address, ensuring that transactions are processed correctly.
- Transaction Processing: Users can generate payment URLs and QR codes based on either a specified fiat value or Nexa amount. The script fetches the current Nexa price from an external API, allowing for real-time calculations and conversions. Users can scan the QR code with Otoplo wallet or Wally wallet.
- Transaction History: The application maintains a history of POS transactions, displaying details such as timestamps, fiat values, Nexa amounts, labels, and messages. Users can also export this history to a CSV file for record-keeping.
- Security Features: Each payment URL is hashed using SHA-256 for verification purposes, enhancing the security of POS transactions.