Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Invoice

An Invoice is used to know whether a transaction or a tx succeeded or failed.

Hierarchy

  • Invoice

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Invoice(success: boolean, error?: undefined | object): Invoice
  • Parameters

    • success: boolean

      Whether a transaction or a tx succeeded or failed.

    • Optional error: undefined | object

    Returns Invoice

Properties

Optional error

error: undefined | object

success

success: boolean

Methods

toJSON

  • toJSON(): object
  • Convert to an Invoice JSON object.

    Returns object

    An Invoice JSON object.

    • error: undefined | object
    • success: boolean

Static fromJSON

  • Create an Invoice from an Invoice JSON object.

    Parameters

    • data: object

      An Invoice JSON object.

      • Optional error?: undefined | object
      • success: boolean

    Returns Invoice

    An Invoice.

Generated using TypeDoc