Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BlockApi

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    Returns BlockApi

Properties

Private api

Methods

get

  • Retrieve a full, signed block.

    Parameters

    • blockNum: number

      height of the block to be returned

    Returns Promise<SignedBlock>

    the referenced block, or ObjectNotFoundError if no matching block was found

getHeadTime

  • getHeadTime(): Promise<Moment>
  • Query the last local block.

    Returns Promise<Moment>

    the block time

getHeader

  • Retrieve a block header.

    Parameters

    • blockNum: number

      height of the block whose header should be returned

    Returns Promise<BlockHeader>

    header of the referenced block, or ObjectNotFoundError if no matching block was found

Generated using TypeDoc