def get_chain_information(self, show_timeslot: bool = True, show_client_version: bool = True) -> ChainInformationData
# 获取所有信息
info = chain.get_chain_information()
print(f"Chain ID: {info.chain_id}")
print(f"Current Block: {info.block_number}")
print(f"Gas Price: {Web3.from_wei(info.gas_price, 'gwei')} Gwei")
if info.timeslot:
print(f"Average Block Time: {info.timeslot}s")
if info.client_version:
print(f"Client Version: {info.client_version}")
# 不显示 timeslot 和 client_version
info = chain.get_chain_information(show_timeslot=False, show_client_version=False)