big_blocks_for_deployment
Documentation for eth_defi.hyperliquid.block.big_blocks_for_deployment function.
- big_blocks_for_deployment(web3, private_key)
Context manager that enables large blocks for a single contract deployment.
Use this to wrap individual contract deployment calls so that configuration transactions between deployments run in small blocks (fast ~1 second confirmation) rather than large blocks (~1 minute).
On non-HyperEVM chains or Anvil forks this is a no-op.
Example:
with big_blocks_for_deployment(web3, private_key): deploy_contract(...)- Parameters
web3 (web3.main.Web3) – Web3 connection.
private_key (str) – Hex-encoded deployer private key.