Tendermint

API

class terra_sdk.client.lcd.api.tendermint.TendermintAPI(c)[source]
block_info(height=None)[source]

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

Parameters

height (int, optional) – block height.

Returns

block info

Return type

dict

node_info()[source]

Fetches the curent connected node’s information.

Returns

node information

Return type

dict

syncing()[source]

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

Returns

syncing status

Return type

bool

validator_set(height=None)[source]

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

Parameters

height (int, optional) – block height.

Returns

validator set

Return type

dict