terra_sdk.client.lcd.api.tendermint
AsyncTendermintAPI Objects
_1class AsyncTendermintAPI(BaseAsyncAPI)
node_info
_1async def node_info(params: Optional[APIParams] = None) -> dict
Fetches the curent connected node's information.
Arguments:
paramsAPIParams - optional parameters
Returns:
dict- node information
syncing
_1async def syncing(params: Optional[APIParams] = None) -> bool
Fetches whether the curent connect node is syncing with the network.
Arguments:
paramsAPIParams - optional parameters
Returns:
bool- syncing status
validator_set
_1async 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:
heightint, optional - block height.paramsAPIParams - optional parameters
Returns:
dict- validator set
block_info
_1async 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:
heightint, optional - block height.paramsAPIParams - optional parameters
Returns:
dict- block info