Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LiteBlock

Hierarchy

  • LiteBlock

Implements

Index

Accessors

blockTemplate

  • get blockTemplate(): Block
  • set blockTemplate(value: Block): void

current_blockchain_height

  • get current_blockchain_height(): number
  • set current_blockchain_height(value: number): void

hop

  • get hop(): number
  • set hop(value: number): void

Methods

toBuffer

  • toBuffer(): Buffer
  • Provides the Buffer representation of the object

    Returns Buffer

    the buffer representation of the object

toString

  • toString(): string
  • Provides the hexadecimal (blob) representation of the object

    Returns string

    the hexadecimal (blob) representation of the object

Static from

  • from(data: Reader | Buffer | string): LiteBlock
  • Creates a new instance of the object using the supplied data found in the levin packet

    Parameters

    • data: Reader | Buffer | string

      the data contained for the payload in the levin packet

    Returns LiteBlock

    a new instance of the object

Generated using TypeDoc