set_big_blocks

Documentation for eth_defi.hyperliquid.block.set_big_blocks function.

set_big_blocks(private_key, enable, is_mainnet=True, timeout=10.0)

Enable or disable large blocks for a deployer address.

Sends an evmUserModify action to the Hyperliquid exchange API. After enabling, all transactions from the address are routed to the large block mempool (~1 minute confirmation) until disabled.

Parameters
  • private_key (str) – Hex-encoded private key (with or without 0x prefix).

  • enable (bool) – True to enable large blocks, False to disable.

  • is_mainnet (bool) – True for HyperEVM mainnet (chain 999), False for testnet (chain 998).

  • timeout (float) – HTTP request timeout in seconds.

Returns

API response dict.

Raises

requests.HTTPError – If the API returns an error status code.

Return type

dict