Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

  • new AccountQR(accountPrivateKey: string, networkType: number, generationHash: string, password?: string): AccountQR
  • Construct an Account QR Code out of the symbol private key.

    Parameters

    • accountPrivateKey: string
    • networkType: number
    • generationHash: string
    • Optional password: string

    Returns AccountQR

Properties

Readonly accountPrivateKey

accountPrivateKey: string

Optional Readonly base64

base64?: string

Readonly encrypted

encrypted: boolean = false

Readonly generationHash

generationHash: string

Readonly networkType

networkType: number

Optional Readonly password

password?: string

Readonly type

The type of the QR Code.

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

    Returns Observable<string>

    Return image data in Base64.

toCanvas

toJSON

  • toJSON(): string

toObject

toString

Static fromJSON

  • fromJSON(json: string, password?: string): AccountQR
  • Parse a JSON QR code content into a AccountQR 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
    • Optional password: string

      Optional password

    Returns AccountQR

Generated using TypeDoc