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
coreUserExistsprecompile atCORE_USER_EXISTS_ADDRESSto 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. Seeactivate_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")