enable_big_blocks

Documentation for eth_defi.hyperliquid.block.enable_big_blocks function.

enable_big_blocks(web3, private_key)

Enable large blocks if needed for contract deployment on HyperEVM.

Checks the chain ID and current block gas limit. If the chain is HyperEVM and the block gas limit is below 10M (small block), enables large blocks for the deployer.

Does nothing on non-HyperEVM chains or Anvil forks (which override the gas limit).

Parameters
  • web3 (web3.main.Web3) – Web3 connection.

  • private_key (str) – Hex-encoded deployer private key.

Returns

True if big blocks were enabled (caller should disable after), False if no action was taken.

Return type

bool