Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LiteBlock

Implements

Index

Constructors

constructor

Properties

Private m_blockTemplate

m_blockTemplate: Block = ...

Private m_current_blockchain_height

m_current_blockchain_height: number = 0

Private m_hop

m_hop: number = 0

Accessors

blockTemplate

  • get blockTemplate(): Block
  • set blockTemplate(value: Block): void
  • The block template a as block

    Returns Block

  • The block template a as block

    Parameters

    Returns void

current_blockchain_height

  • get current_blockchain_height(): number
  • set current_blockchain_height(value: number): void
  • The current blockchain height

    Returns number

  • The current blockchain height

    Parameters

    • value: number

    Returns void

hop

  • get hop(): number
  • set hop(value: number): void
  • The hops from the originating node

    Returns number

  • The hops from the originating node

    Parameters

    • value: number

    Returns 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: string | Buffer | Reader): Promise<LiteBlock>
  • Creates a new instance of the object using the supplied data found in the levin packet

    Parameters

    • data: string | Buffer | Reader

      the data contained for the payload in the levin packet

    Returns Promise<LiteBlock>

    a new instance of the object

Generated using TypeDoc