preflight_check_big_blocks
Documentation for eth_defi.hyperliquid.block.preflight_check_big_blocks function.
- preflight_check_big_blocks(web3, private_key)
Verify big blocks can be toggled before starting a deployment on HyperEVM.
Performs a quick enable/disable round-trip against the Hyperliquid exchange API. If the deployer address has never performed an L1 action (e.g. a spot transfer), the API will reject the request and this function raises
HyperEVMBigBlocksErrorwith a clear message, rather than letting the deployment fail mid-way with an opaque “exceeds block gas limit” error.No-op on non-HyperEVM chains and Anvil forks.
- Parameters
web3 (web3.main.Web3) – Web3 connection.
private_key (str) – Hex-encoded deployer private key.
- Raises
HyperEVMBigBlocksError – If the Hyperliquid exchange API rejects the big blocks toggle.
- Return type
None