Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TendermintAPI

Hierarchy

Index

Constructors

constructor

Methods

blockInfo

  • blockInfo(height?: undefined | number): Promise<BlockInfo>
  • Gets the block information at the specified height. If no height is given, the latest block is returned.

    Parameters

    • Optional height: undefined | number

      block height.

    Returns Promise<BlockInfo>

nodeInfo

  • nodeInfo(): Promise<object>

syncing

  • syncing(): Promise<boolean>

validatorSet

  • validatorSet(height?: undefined | number): Promise<ValidatorSet>
  • Gets the validator (delegates) set at the specific height. If no height is given, the current set is returned.

    Parameters

    • Optional height: undefined | number

      block height

    Returns Promise<ValidatorSet>