Skip to main content

QR Code Reader

Version Requirements

  • MiniApp SDK Version: >= 1.0.0 (npm package @wcm/mini-app-sdk)
  • MiniApp Runtime Engine Version: >= 1.0.0

Basic Usage

To use the QR Code Reader in your MiniApp, use the following function:

import { scanQrCode } from "@wcm/mini-app-sdk/scan-qr-code";

// returns the decoded string from the scanned QR code if successful.
const result: string = await scanQrCode();