big_blocks_enabled

Documentation for eth_defi.hyperliquid.block.big_blocks_enabled function.

big_blocks_enabled(private_key, is_mainnet=True, web3=None)

Context manager that enables large blocks and disables them on exit.

Checks whether the address already has large blocks enabled and only toggles if needed. Always restores the original state on exit (even if an exception occurs).

Example:

with big_blocks_enabled(private_key, is_mainnet=False, web3=web3):
    deploy_automated_lagoon_vault(...)
Parameters
  • private_key (str) – Hex-encoded deployer private key.

  • is_mainnet (bool) – True for mainnet, False for testnet.

  • web3 (web3.main.Web3 | None) – Optional Web3 instance for checking current status via eth_usingBigBlocks. If not provided, always toggles.