wait_for_using_big_blocks

Documentation for eth_defi.hyperliquid.block.wait_for_using_big_blocks function.

wait_for_using_big_blocks(web3, address, enabled, timeout=15.0, poll_interval=1.0)

Wait until the EVM RPC reports the expected large-block flag state.

This is useful on HyperEVM testnet where the exchange API toggle may take a moment to become visible through the eth_usingBigBlocks RPC method.

Parameters
  • web3 (web3.main.Web3) – Web3 connected to a HyperEVM node.

  • address (Union[eth_typing.evm.HexAddress, str]) – Address to check.

  • enabled (bool) – Expected usingBigBlocks state.

  • timeout (float) – Maximum wait time in seconds.

  • poll_interval (float) – Delay between polling attempts in seconds.

Raises

HyperEVMBigBlocksError – If the expected state is not observed before the timeout.

Return type

None