get_last_blockΒΆ

async get_last_block() -> int

Get the number of the latest block on the blockchain.

Returns:

  • int: The latest block number.

Example usage:

latest_block = await tron_client.get_last_block()