Skip to main content

terra_sdk.client.lcd.api.tendermint

AsyncTendermintAPI Objects


_1
class AsyncTendermintAPI(BaseAsyncAPI)

node_info


_1
async def node_info(params: Optional[APIParams] = None) -> dict

Fetches the curent connected node's information.

Arguments:

  • params APIParams - optional parameters

Returns:

  • dict - node information

syncing


_1
async def syncing(params: Optional[APIParams] = None) -> bool

Fetches whether the curent connect node is syncing with the network.

Arguments:

  • params APIParams - optional parameters

Returns:

  • bool - syncing status

validator_set


_1
async def validator_set(height: Optional[int] = None, params: Optional[APIParams] = None) -> dict

Fetches the validator set for a height. If no height is given, defaults to latest.

Arguments:

  • height int, optional - block height.
  • params APIParams - optional parameters

Returns:

  • dict - validator set

block_info


_1
async def block_info(height: Optional[int] = None, params: Optional[APIParams] = None) -> dict

Fetches the block information for a given height. If no height is given, defaults to latest block.

Arguments:

  • height int, optional - block height.
  • params APIParams - optional parameters

Returns:

  • dict - block info