Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new TransactionQR(transaction: Transaction, networkType: NetworkType, generationHash: string, type?: QRCodeType): TransactionQR
  • Construct a Transaction Request QR Code out of the symbol-sdk Transaction instance.

    Parameters

    • transaction: Transaction
    • networkType: NetworkType
    • generationHash: string
    • Default value type: QRCodeType = QRCodeType.RequestTransaction

    Returns TransactionQR

Properties

Optional base64

base64: string

generationHash

generationHash: string

networkType

networkType: NetworkType

The network type.

var

{NetworkType}

transaction

transaction: Transaction

The transaction for the request.

var

{Transaction}

type

The QR Code Type

var

{QRCodeType}

Methods

getCorrectionLevel

getSchema

getTypeNumber

  • getTypeNumber(): number

toBase64

  • Generate QRcode image Base64.

    The returned string can be put in the src attribute of a <img /> tag directly in HTML. The produced image will be a PNG.

    Parameters

    • Default value settings: QRCodeSettings = new QRCodeSettings()

      (Optional) Settings for generation

    Returns Observable<string>

    Return image data in Base64.

toCanvas

toJSON

  • toJSON(): string

toObject

toString

Static fromJSON

  • Parse a JSON QR code content into a TransactionQR object.

    throws

    {Error} On empty json given.

    throws

    {Error} On missing type field value.

    throws

    {Error} On unrecognized QR code type field value.

    Parameters

    • json: string

    Returns TransactionQR

Generated using TypeDoc