Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TendermintAPI

Hierarchy

  • BaseAPI
    • TendermintAPI

Index

Constructors

Properties

Methods

  • blockInfo(chainID: string, 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

    • chainID: string

      chain id

    • Optional height: number

      block height.

    • params: APIParams = {}

    Returns Promise<BlockInfo>

  • getReqFromAddress(address: string): APIRequester
  • getReqFromChainID(chainID: string): APIRequester
  • nodeInfo(chainID: string, params?: APIParams): Promise<object>
  • syncing(chainID: string, params?: APIParams): Promise<boolean>
  • Gets whether the node is currently in syncing mode to catch up with blocks.

    Parameters

    • chainID: string

      chain id

    • params: APIParams = {}

    Returns Promise<boolean>

  • validatorSet(chainID: string, 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

    • chainID: string

      chain id

    • Optional height: number

      block height

    • params: APIParams = {}

    Returns Promise<[DelegateValidator[], Pagination]>