fetch_derive_wallet_address
Documentation for eth_defi.derive.onboarding.fetch_derive_wallet_address function.
- fetch_derive_wallet_address(owner_address, is_testnet=True, salt=0)
Derive the counterfactual LightAccount wallet address for an owner EOA.
Calls
LightAccountFactory.getAddress(owner, salt)on Derive Chain to get the deterministic CREATE2 address. The contract does not need to be deployed – the address is computed fromcreate2(factory, salt, initCodeHash).- Parameters
owner_address (eth_typing.evm.HexAddress) – Owner EOA address.
is_testnet (bool) – Whether to use the Derive testnet RPC.
salt (int) – CREATE2 salt (defaults to 0, matching the web UI).
- Returns
Counterfactual LightAccount address.
- Return type