get_block_time

Documentation for eth_defi.chain.get_block_time function.

get_block_time(chain_id)

Get average block time for a chain.

Parameters

chain_id (int) – Chain id to get the block time for

Returns

Average block time in seconds.

Return type

float