fetch_subaccount_ids
Documentation for eth_defi.derive.account.fetch_subaccount_ids function.
- fetch_subaccount_ids(client)
Fetch subaccount IDs for a Derive wallet.
Uses the Derive v3
public/get_subaccountsendpoint, which needs no authentication. A wallet that has never deposited into Derive v3 has no account and returns an empty list.- Parameters
client (DeriveApiClient) – Derive API client with
derive_wallet_addressset.- Returns
List of subaccount IDs (may be empty if no subaccounts exist).
- Raises
ValueError – If the API returns an error.
- Return type