Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TendermintAPI

Hierarchy

  • BaseAPI
    • TendermintAPI

Index

Constructors

constructor

Methods

blockInfo

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

    Parameters

    • Optional height: number

      block height.

    • params: APIParams = {}

    Returns Promise<BlockInfo>

nodeInfo

  • nodeInfo(params?: APIParams): Promise<object>

syncing

  • syncing(params?: APIParams): Promise<boolean>
  • Gets whether the node is currently in syncing mode to catch up with blocks.

    Parameters

    • params: APIParams = {}

    Returns Promise<boolean>

validatorSet

  • validatorSet(height?: number, params?: APIParams): Promise<[DelegateValidator[], Pagination]>
  • Gets the validator (delegates) set at the specific height. If no height is given, the current set is returned.

    Parameters

    • Optional height: number

      block height

    • params: APIParams = {}

    Returns Promise<[DelegateValidator[], Pagination]>