Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Handshake

Represents a handshake payload

Hierarchy

  • Handshake

Implements

Index

Accessors

current_height

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

local_peerlist

local_time

  • get local_time(): Date
  • set local_time(value: Date): void

my_port

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

network_id

  • get network_id(): string
  • set network_id(value: string): void

peer_id

  • get peer_id(): string
  • set peer_id(value: string): void

top_id

  • get top_id(): string
  • set top_id(value: string): void

version

  • get version(): number
  • set version(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): Handshake
  • 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 Handshake

    a new instance of the object

Generated using TypeDoc