is_account_activated

Documentation for eth_defi.hyperliquid.evm_escrow.is_account_activated function.

is_account_activated(web3, user)

Check if an address is activated on HyperCore.

Uses the coreUserExists precompile at CORE_USER_EXISTS_ADDRESS to definitively check whether the address exists on HyperCore.

Smart contracts (like Safe multisigs) must be activated before CoreDepositWallet.deposit() bridge actions will clear the EVM escrow. See activate_account().

Note

P12: Precompile reads return stale data within the same block as a CoreWriter action. This should not affect activation checks in practice because activation (depositFor) and deposit (CDW.deposit) are in separate transactions, and the trade executor waits for activation receipt before proceeding.

Example:

from eth_defi.hyperliquid.evm_escrow import is_account_activated
from eth_defi.provider.multi_provider import create_multi_provider_web3

web3 = create_multi_provider_web3("https://rpc.hyperliquid.xyz/evm")
if is_account_activated(web3, user="0xAbc..."):
    print("Account is activated")
else:
    print("Account needs activation")
Parameters
  • web3 (web3.main.Web3) – Web3 connection to HyperEVM.

  • user (str) – On-chain address to check.

Returns

True if the address exists on HyperCore.

Return type

bool