Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Slot

Time to interact with blockchain.

Hierarchy

  • Slot

Index

Methods

Static getDurationTime

  • getDurationTime(timestamp: number): number
  • Calculates duration between now and provided timestamp

    Parameters

    • timestamp: number

    Returns number

Static getLastSlot

  • getLastSlot(nextSlot: number): number

Static getNextSlot

  • getNextSlot(): number

Static getSlotNumber

  • getSlotNumber(epochTime?: number): number
  • Parameters

    • Default value epochTime: number = this.getTime()

    Returns number

Static getSlotTime

  • getSlotTime(slot: number): number

Static getTime

  • getTime(): number

Static getTransactionTime

  • getTransactionTime(timestamp: number): Date
  • Get transaction time from timestamp

    Parameters

    • timestamp: number

    Returns Date

Generated using TypeDoc